mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #11838 from s0undt3ch/develop
Better variable names.
This commit is contained in:
commit
6f2369defd
8
setup.py
8
setup.py
@ -174,7 +174,7 @@ class CloudSdist(sdist):
|
||||
)
|
||||
with open(deploy_path, 'w') as fp_:
|
||||
fp_.write(req.read())
|
||||
except (OSError, IOError), err:
|
||||
except (OSError, IOError) as err:
|
||||
log.error(
|
||||
'Failed to write the updated script: {0}'.format(err)
|
||||
)
|
||||
@ -394,10 +394,10 @@ class InstallLib(install_lib):
|
||||
out = self.get_outputs()
|
||||
chmod = []
|
||||
|
||||
for i, word in enumerate(inp):
|
||||
for idx, inputfile in enumerate(inp):
|
||||
for executeable in executables:
|
||||
if word.endswith(executeable):
|
||||
chmod.append(i)
|
||||
if inputfile.endswith(executeable):
|
||||
chmod.append(idx)
|
||||
for idx in chmod:
|
||||
filename = out[idx]
|
||||
os.chmod(filename, 0755)
|
||||
|
Loading…
Reference in New Issue
Block a user