From 5d0340a9e39b62ef4ecb9d049233f224036dfd33 Mon Sep 17 00:00:00 2001 From: Sebastian Kornehl Date: Fri, 2 Jun 2017 23:36:32 +0200 Subject: [PATCH] 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 --- lib/ansible/modules/monitoring/datadog_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/monitoring/datadog_monitor.py b/lib/ansible/modules/monitoring/datadog_monitor.py index 811ea36e6e8..f9ff164d457 100644 --- a/lib/ansible/modules/monitoring/datadog_monitor.py +++ b/lib/ansible/modules/monitoring/datadog_monitor.py @@ -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)