datadog_monitor: Idempotence fix (#19217)

* Added matching_downtimes to list of ignores values. Fixes: #19216

* Added overall_state_modified to list of ignores values. Fixes: #19216
pull/21541/merge
Sebastian Kornehl 8 years ago committed by René Moser
parent 6ba040591c
commit 5d0340a9e3

@ -282,7 +282,7 @@ def _update_monitor(module, monitor, 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', 'modified']): elif _equal_dicts(msg, monitor, ['creator', 'overall_state', 'modified', 'matching_downtimes', '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…
Cancel
Save