idempotency fix (#2024)

This commit is contained in:
Jordan Cohen 2016-04-16 08:10:49 -04:00 committed by Matt Clay
parent e57ef71ed3
commit e07cc7d9a2

View file

@ -208,7 +208,7 @@ def _update_monitor(module, monitor, options):
options=options)
if 'errors' in msg:
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)
else:
module.exit_json(changed=True, msg=msg)