mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
ssh: rename file => filename, to not shadow the built-in
This commit is contained in:
parent
e644de7e76
commit
bf2c8ee467
@ -616,11 +616,11 @@ def prep_trans_tar(opts, chunks, file_refs):
|
||||
break
|
||||
files = file_client.cache_dir(name, env, True)
|
||||
if files:
|
||||
for file in files:
|
||||
for filename in files:
|
||||
tgt = os.path.join(
|
||||
env_root,
|
||||
short,
|
||||
file[file.find(short) + len(short):],
|
||||
filename[filename.find(short) + len(short):],
|
||||
)
|
||||
tgt_dir = os.path.dirname(tgt)
|
||||
if not os.path.isdir(tgt_dir):
|
||||
|
@ -128,11 +128,11 @@ def prep_trans_tar(opts, chunks, file_refs):
|
||||
break
|
||||
files = file_client.cache_dir(name, env, True)
|
||||
if files:
|
||||
for file in files:
|
||||
for filename in files:
|
||||
tgt = os.path.join(
|
||||
env_root,
|
||||
short,
|
||||
file[file.find(short) + len(short):],
|
||||
filename[filename.find(short) + len(short):],
|
||||
)
|
||||
tgt_dir = os.path.dirname(tgt)
|
||||
if not os.path.isdir(tgt_dir):
|
||||
|
Loading…
Reference in New Issue
Block a user