mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
commit
c28151f5f7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue