mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Revert "Added eval for pasting tag lists"
This commit is contained in:
committed by
Matt Clay
parent
bcfd5772e4
commit
0ecedfeb25
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user