mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
cmdmod: should be if
, not elif
; CWD validity check shouldn't be Windows-only
This commit is contained in:
parent
e644de7e76
commit
2c8d74edbd
@ -331,7 +331,7 @@ def _run(cmd,
|
|||||||
kwargs['executable'] = shell
|
kwargs['executable'] = shell
|
||||||
kwargs['close_fds'] = True
|
kwargs['close_fds'] = True
|
||||||
|
|
||||||
elif not os.path.isabs(cwd) or not os.path.isdir(cwd):
|
if not os.path.isabs(cwd) or not os.path.isdir(cwd):
|
||||||
raise CommandExecutionError(
|
raise CommandExecutionError(
|
||||||
'Specified cwd {0!r} either not absolute or does not exist'
|
'Specified cwd {0!r} either not absolute or does not exist'
|
||||||
.format(cwd)
|
.format(cwd)
|
||||||
|
Loading…
Reference in New Issue
Block a user