mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Only check for the execution bits if a value was actually passed.
This commit is contained in:
parent
998775e974
commit
88692e9e4b
@ -161,11 +161,13 @@ def create(path,
|
||||
)
|
||||
else:
|
||||
cmd.append('--distribute')
|
||||
if not os.access(python, os.X_OK):
|
||||
raise salt.exceptions.CommandExecutionError(
|
||||
'Requested python ({0}) does not appear executable.'.format(python)
|
||||
)
|
||||
|
||||
if python is not None and python.strip() != '':
|
||||
if not os.access(python, os.X_OK):
|
||||
raise salt.exceptions.CommandExecutionError(
|
||||
'Requested python ({0}) does not appear '
|
||||
'executable.'.format(python)
|
||||
)
|
||||
cmd.append('--python={0}'.format(python))
|
||||
if extra_search_dir is not None:
|
||||
if isinstance(extra_search_dir, basestring) and \
|
||||
|
Loading…
Reference in New Issue
Block a user