diff options
author | Greg DeKoenigsberg <greg.dekoenigsberg@gmail.com> | 2015-06-01 12:07:23 -0400 |
---|---|---|
committer | Greg DeKoenigsberg <greg.dekoenigsberg@gmail.com> | 2015-06-01 12:07:23 -0400 |
commit | 223694ccf270da8b1b5a5d61bc05771c111dda1c (patch) | |
tree | cbe7f56aa83b3eab43c1d767fff0fdcbc90b59f6 | |
parent | 04b4a795520d52e793d363f3f57741935ab1af2a (diff) | |
download | ansible-modules-extras-revert-512-devel.tar.gz |
Revert "Added eval for pasting tag lists"revert-512-devel
-rw-r--r-- | monitoring/datadog_event.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/monitoring/datadog_event.py b/monitoring/datadog_event.py index a3ac92a0..1d6a98dc 100644 --- a/monitoring/datadog_event.py +++ b/monitoring/datadog_event.py @@ -116,10 +116,7 @@ def post_event(module): if module.params['date_happened'] != None: body['date_happened'] = module.params['date_happened'] if module.params['tags'] != None: - if module.params['tags'].startswith("[") and module.params['tags'].endswith("]"): - body['tags'] = eval(module.params['tags']) - else: - body['tags'] = module.params['tags'].split(",") + body['tags'] = module.params['tags'].split(",") if module.params['aggregation_key'] != None: body['aggregation_key'] = module.params['aggregation_key'] if module.params['source_type_name'] != None: |