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: