mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
if we've failed a connection to a host - we cannot set items to the
'conn' object since it is not an object on failure - it's a string.
This commit is contained in:
@@ -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' ]:
|
||||
|
||||
Reference in New Issue
Block a user