diff --git a/changelogs/fragments/1338-datadog-mark-notification_message-no_log.yml b/changelogs/fragments/1338-datadog-mark-notification_message-no_log.yml new file mode 100644 index 0000000000..49c036c3ac --- /dev/null +++ b/changelogs/fragments/1338-datadog-mark-notification_message-no_log.yml @@ -0,0 +1,3 @@ +--- +minor_changes: + - datadog - mark ``notification_message`` as ``no_log`` (https://github.com/ansible-collections/community.general/pull/1338). diff --git a/plugins/modules/monitoring/datadog/datadog_monitor.py b/plugins/modules/monitoring/datadog/datadog_monitor.py index dc76cca259..f6020c2bed 100644 --- a/plugins/modules/monitoring/datadog/datadog_monitor.py +++ b/plugins/modules/monitoring/datadog/datadog_monitor.py @@ -211,7 +211,7 @@ def main(): type=dict(required=False, choices=['metric alert', 'service check', 'event alert', 'process alert', 'log alert']), name=dict(required=True), query=dict(required=False), - notification_message=dict(required=False, default=None, aliases=['message'], + notification_message=dict(required=False, no_log=True, default=None, aliases=['message'], deprecated_aliases=[dict(name='message', version='3.0.0', collection_name='community.general')]), # was Ansible 2.14 silenced=dict(required=False, default=None, type='dict'),