Thresholds need to be passed for the log alert type (#64851)

* Thresholds need to be passed for the log alert type

* removed whitespace from linting error
pull/67442/head
Ilija Matoski 5 years ago committed by GitHub
parent 95d4908987
commit e1a815381a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save