diff --git a/lib/ansible/modules/monitoring/datadog/datadog_monitor.py b/lib/ansible/modules/monitoring/datadog/datadog_monitor.py index add559b77ac..258a31123c6 100644 --- a/lib/ansible/modules/monitoring/datadog/datadog_monitor.py +++ b/lib/ansible/modules/monitoring/datadog/datadog_monitor.py @@ -343,7 +343,7 @@ def install_monitor(module): if module.params['type'] == "service check": options["thresholds"] = module.params['thresholds'] or {'ok': 1, 'critical': 1, 'warning': 1} - if module.params['type'] == "metric alert" and module.params['thresholds'] is not None: + if module.params['type'] in ["metric alert", "log alert"] and module.params['thresholds'] is not None: options["thresholds"] = module.params['thresholds'] monitor = _get_monitor(module)