Skip to content

Commit

Permalink
ios_user_global - Take in count no username question
Browse files Browse the repository at this point in the history
Currently, on IOS devices, when you enter a `no username` command, the
system request you a question to confirm the suppression.

To handle this part, I have put a "dedicated" command for the remove
part of username part to send also a y juste after the no username
command
  • Loading branch information
earendilfr committed Aug 15, 2023
1 parent fc60ee7 commit e422634
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def __init__(self, lines=None, module=None):
(\s(?P<value>\S+))?
""", re.VERBOSE,
),
"remval": r"username {{ name }}\ry",
"setval": "username {{ name }}"
"{{ ' privilege ' + privilege|string if privilege is defined and 0 <= privilege|int <= 15 and privilege|int != 1 else '' }}"
"{% if 'type' in password and password.type == 'password' %}"
Expand Down

0 comments on commit e422634

Please sign in to comment.