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:
parent
6ba040591c
commit
5d0340a9e3
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue