1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixes #23308 ios_banner: KeyError: 'text' on state: absen (#23313)

This commit is contained in:
Chris Alfonso 2017-04-05 11:30:40 -06:00 committed by GitHub
parent d268471739
commit 3a78861cb5

View file

@ -92,7 +92,7 @@ def map_obj_to_commands(updates, module):
want, have = updates
state = module.params['state']
if state == 'absent' and have['text']:
if state == 'absent' and 'text' in have.keys() and have['text']:
commands.append('no banner %s' % module.params['banner'])
elif state == 'present':