Merge pull request #45606 from terminalmage/salt-ssh-root-dir-fix

Fix bug affecting salt-ssh when root_dir differs from the default
This commit is contained in:
Nicole Thomas 2018-01-23 15:03:48 -05:00 committed by GitHub
commit c28151f5f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,7 +205,7 @@ def prep_trans_tar(opts, file_client, chunks, file_refs, pillar=None, id_=None):
os.makedirs(env_root)
for ref in file_refs[saltenv]:
for name in ref:
short = salt.utils.url.parse(name)[0]
short = salt.utils.url.parse(name)[0].lstrip('/')
cache_dest = os.path.join(cache_dest_root, short)
try:
path = file_client.cache_file(name, saltenv, cachedir=cachedir)