mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Fix bug affecting salt-ssh when root_dir differs from the default
H/T https://github.com/saltstack/salt/issues/44957#issuecomment-356122811
This commit is contained in:
parent
ced3269ae8
commit
d52d96f30a
@ -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…
Reference in New Issue
Block a user