fixed nxos_aaa_server_host issue with type 7 encrypt key (#46015)

* fixed nxos_aaa_server_host issue with type 7 encrypt and added test cases

* added idempotence tests
This commit is contained in:
Dan 2018-09-25 12:09:22 +01:00 committed by Trishna Guha
commit f20938788a
3 changed files with 49 additions and 0 deletions

View file

@ -309,6 +309,8 @@ def main():
delta = proposed
else:
for key, value in proposed.items():
if key == 'encrypt_type':
delta[key] = value
if value != existing.get(key):
if value != 'default' or existing.get(key):
delta[key] = value