summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael DeHaan <michael.dehaan@gmail.com>2012-03-09 04:19:03 -0800
committerMichael DeHaan <michael.dehaan@gmail.com>2012-03-09 04:19:03 -0800
commitc89a0f96bdfd048d1a3fd2b16c8d2e9960a13f72 (patch)
treecf153da9451e58e7df6cf3044968e54816bc2db6
parent56de2e112a97f312c7a07c89e1ce5de74a2637f8 (diff)
parent19b784e48055ec750b75f21e60d49cb215f943a4 (diff)
downloadansible-c89a0f96bdfd048d1a3fd2b16c8d2e9960a13f72.tar.gz
Merge pull request #87 from skvidal/feature
if we've failed a connection to a host - we cannot set items to the
-rwxr-xr-xlib/ansible/runner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/runner.py b/lib/ansible/runner.py
index f0b6c596c8..5648fd43ef 100755
--- a/lib/ansible/runner.py
+++ b/lib/ansible/runner.py
@@ -348,10 +348,10 @@ class Runner(object):
# module, call the appropriate executor function
ok, conn = self._connect(host)
- conn._host = host
if not ok:
return [ host, False, conn ]
-
+
+ conn._host = host
tmp = self._get_tmp_path(conn)
result = None
if self.module_name not in [ 'copy', 'template' ]: