Merge pull request #9936 from sysadmin75/9415_hostname_as_dir

Fixes #9415 - fetch: should use hostname instead of ip for directory name
This commit is contained in:
Brian Coca 2015-02-20 11:14:48 -05:00
commit 6b64fe8bdd

View file

@ -110,7 +110,7 @@ class ActionModule(object):
dest = utils.path_dwim(self.runner.basedir, dest) dest = utils.path_dwim(self.runner.basedir, dest)
else: else:
# files are saved in dest dir, with a subdir for each host, then the filename # 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("//","/") dest = dest.replace("//","/")