mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Fixes #9415 - fetch: should use hostname instead of ip for directory name
This commit is contained in:
@@ -110,7 +110,7 @@ class ActionModule(object):
|
||||
dest = utils.path_dwim(self.runner.basedir, dest)
|
||||
else:
|
||||
# files are saved in dest dir, with a subdir for each host, then the filename
|
||||
dest = "%s/%s/%s" % (utils.path_dwim(self.runner.basedir, dest), conn.host, source_local)
|
||||
dest = "%s/%s/%s" % (utils.path_dwim(self.runner.basedir, dest), inject['inventory_hostname'], source_local)
|
||||
|
||||
dest = dest.replace("//","/")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user