Corrected exec() error
Change-Id: Ibcaea22a6d23045ea5a9be591f3e9d71c0cce3dd
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/gen_plug_in_utils.py b/lib/gen_plug_in_utils.py
index ab0b1ff..6913b42 100755
--- a/lib/gen_plug_in_utils.py
+++ b/lib/gen_plug_in_utils.py
@@ -143,7 +143,7 @@
cmd_buf += ", 0)"
else:
cmd_buf += ")"
- exec(cmd_buf)
+ exec(cmd_buf) in globals(), locals()
# Register password values to prevent printing them out. Any plug var whose name ends in PASSWORD will
# be registered.
password_vals = {k: v for (k, v) in plug_var_dict.items()