Merge pull request #565 from ansible/revert-512-devel

Revert "Added eval for pasting tag lists"
This commit is contained in:
Greg DeKoenigsberg 2015-06-01 12:12:14 -04:00
commit d958e0b739

View file

@ -116,10 +116,7 @@ def post_event(module):
if module.params['date_happened'] != None: if module.params['date_happened'] != None:
body['date_happened'] = module.params['date_happened'] body['date_happened'] = module.params['date_happened']
if module.params['tags'] != None: if module.params['tags'] != None:
if module.params['tags'].startswith("[") and module.params['tags'].endswith("]"): body['tags'] = module.params['tags'].split(",")
body['tags'] = eval(module.params['tags'])
else:
body['tags'] = module.params['tags'].split(",")
if module.params['aggregation_key'] != None: if module.params['aggregation_key'] != None:
body['aggregation_key'] = module.params['aggregation_key'] body['aggregation_key'] = module.params['aggregation_key']
if module.params['source_type_name'] != None: if module.params['source_type_name'] != None: