From 59059747378059e2e9fafe92956e303d5390ddb6 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 31 Mar 2012 11:03:29 -0400 Subject: [PATCH] Fix variable referenced before assignment when not using external variables script --- lib/ansible/runner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/runner.py b/lib/ansible/runner.py index 60fa4b8959..8ceec0a78e 100755 --- a/lib/ansible/runner.py +++ b/lib/ansible/runner.py @@ -291,6 +291,7 @@ class Runner(object): args = [ str(x) for x in module_args ] args = " ".join(args) inject_vars = self.setup_cache.get(conn.host,{}) + inject2 = {} # 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