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:
parent
cc7867d1de
commit
0e68c6d6fe
1 changed files with 1 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue