mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Fix ios_system lookup enable issue (#30263)
Fixes #29974 Add `None` check while comparing module parameter values (want) with the actual configuration present on device (have).
This commit is contained in:
parent
8489e298ca
commit
d8371cec91
2 changed files with 25 additions and 1 deletions
|
@ -146,7 +146,7 @@ def map_obj_to_commands(want, have, module):
|
|||
commands = list()
|
||||
state = module.params['state']
|
||||
|
||||
needs_update = lambda x: want.get(x) and (want.get(x) != have.get(x))
|
||||
needs_update = lambda x: want.get(x) is not None and (want.get(x) != have.get(x))
|
||||
|
||||
if state == 'absent':
|
||||
if have['hostname'] != 'Router':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue