Skip to content

Commit

Permalink
if we've failed a connection to a host - we cannot set items to the
Browse files Browse the repository at this point in the history
'conn' object since it is not an object on failure - it's a string.
  • Loading branch information
skvidal committed Mar 9, 2012
1 parent 96d39a0 commit 19b784e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,10 @@ def _executor(self, host):
# 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' ]:
Expand Down

0 comments on commit 19b784e

Please sign in to comment.