mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #7170 from hulu/filename-instead-of-file
ssh: rename file => filename, to not shadow the built-in
This commit is contained in:
commit
d2f1215971
@ -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