mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Better variable names.
This commit is contained in:
parent
2df20719de
commit
33ca7f6817
1 changed files with 4 additions and 4 deletions
8
setup.py
8
setup.py
|
@ -174,7 +174,7 @@ class CloudSdist(sdist):
|
||||||
)
|
)
|
||||||
with open(deploy_path, 'w') as fp_:
|
with open(deploy_path, 'w') as fp_:
|
||||||
fp_.write(req.read())
|
fp_.write(req.read())
|
||||||
except (OSError, IOError), err:
|
except (OSError, IOError) as err:
|
||||||
log.error(
|
log.error(
|
||||||
'Failed to write the updated script: {0}'.format(err)
|
'Failed to write the updated script: {0}'.format(err)
|
||||||
)
|
)
|
||||||
|
@ -394,10 +394,10 @@ class InstallLib(install_lib):
|
||||||
out = self.get_outputs()
|
out = self.get_outputs()
|
||||||
chmod = []
|
chmod = []
|
||||||
|
|
||||||
for i, word in enumerate(inp):
|
for idx, inputfile in enumerate(inp):
|
||||||
for executeable in executables:
|
for executeable in executables:
|
||||||
if word.endswith(executeable):
|
if inputfile.endswith(executeable):
|
||||||
chmod.append(i)
|
chmod.append(idx)
|
||||||
for idx in chmod:
|
for idx in chmod:
|
||||||
filename = out[idx]
|
filename = out[idx]
|
||||||
os.chmod(filename, 0755)
|
os.chmod(filename, 0755)
|
||||||
|
|
Loading…
Add table
Reference in a new issue