Merge pull request #512 from skornehl/devel

Added eval for pasting tag lists
This commit is contained in:
Greg DeKoenigsberg 2015-06-01 09:17:20 -04:00
commit 9f9b50996e

View file

@ -116,6 +116,9 @@ 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(",")
if module.params['aggregation_key'] != None:
body['aggregation_key'] = module.params['aggregation_key']