bug-35431 fixed removing encryption from user on subsequent runs of the task (#35433)
This commit is contained in:
parent
4956bfd4c4
commit
2293252e52
1 changed files with 3 additions and 3 deletions
|
@ -289,9 +289,6 @@ def main():
|
|||
reset = True
|
||||
proposed['encrypt'] = 'aes-128'
|
||||
|
||||
elif encrypt:
|
||||
proposed['encrypt'] = 'aes-128'
|
||||
|
||||
delta = dict(set(proposed.items()).difference(existing.items()))
|
||||
|
||||
if delta.get('pwd'):
|
||||
|
@ -300,6 +297,9 @@ def main():
|
|||
if delta:
|
||||
delta['group'] = group
|
||||
|
||||
if delta and encrypt:
|
||||
delta['encrypt'] = 'aes-128'
|
||||
|
||||
command = config_snmp_user(delta, user, reset, new)
|
||||
commands.append(command)
|
||||
|
||||
|
|
Loading…
Reference in a new issue