idempotency fix (#2024)
This commit is contained in:
parent
a61742e070
commit
359b2abebc
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ def _update_monitor(module, monitor, options):
|
||||||
options=options)
|
options=options)
|
||||||
if 'errors' in msg:
|
if 'errors' in msg:
|
||||||
module.fail_json(msg=str(msg['errors']))
|
module.fail_json(msg=str(msg['errors']))
|
||||||
elif _equal_dicts(msg, monitor, ['creator', 'overall_state']):
|
elif _equal_dicts(msg, monitor, ['creator', 'overall_state', 'modified']):
|
||||||
module.exit_json(changed=False, msg=msg)
|
module.exit_json(changed=False, msg=msg)
|
||||||
else:
|
else:
|
||||||
module.exit_json(changed=True, msg=msg)
|
module.exit_json(changed=True, msg=msg)
|
||||||
|
|
Loading…
Reference in a new issue