Commit 59059747 by Michael DeHaan

Fix variable referenced before assignment when not using external variables script

parent 3495d402
...@@ -291,6 +291,7 @@ class Runner(object): ...@@ -291,6 +291,7 @@ class Runner(object):
args = [ str(x) for x in module_args ] args = [ str(x) for x in module_args ]
args = " ".join(args) args = " ".join(args)
inject_vars = self.setup_cache.get(conn.host,{}) inject_vars = self.setup_cache.get(conn.host,{})
inject2 = {}
# if the host file was an external script, execute it with the hostname # if the host file was an external script, execute it with the hostname
# as a first parameter to get the variables to use for the host # as a first parameter to get the variables to use for the host
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment