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

pull/23318/head
Chris Alfonso 8 years ago committed by GitHub
parent d268471739
commit 3a78861cb5

@ -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':

Loading…
Cancel
Save