1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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
This commit is contained in:
Sebastian Kornehl 2017-06-02 23:36:32 +02:00 committed by René Moser
parent 6ba040591c
commit 5d0340a9e3

View file

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