1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Cleaning up use of literal_eval in basic.py AnsibleModule.safe_eval

This commit is contained in:
James Cammarata 2016-03-17 02:01:16 -04:00
parent cc7867d1de
commit 0e68c6d6fe

View file

@ -1263,11 +1263,7 @@ class AnsibleModule(object):
return (str, None)
return str
try:
result = None
if not locals:
result = literal_eval(str)
else:
result = literal_eval(str, None, locals)
result = literal_eval(str)
if include_exceptions:
return (result, None)
else: