From 0e68c6d6fefd089b045a1f12c3de17dc64b4037c Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Thu, 17 Mar 2016 02:01:16 -0400 Subject: [PATCH] Cleaning up use of literal_eval in basic.py AnsibleModule.safe_eval --- lib/ansible/module_utils/basic.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index 26c17154b0..fe9647265d 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -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: