This commit is contained in:
parent
ebda0bebfc
commit
55583c71ff
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue