mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Updated more occurances of a default cwd
This commit is contained in:
parent
ff38b2707f
commit
42bf698b75
@ -231,7 +231,7 @@ def _run_check(cmd_kwargs, onlyif, unless, cwd, user, group, shell):
|
||||
def wait(name,
|
||||
onlyif=None,
|
||||
unless=None,
|
||||
cwd='/root',
|
||||
cwd=None,
|
||||
user=None,
|
||||
group=None,
|
||||
shell=None,
|
||||
@ -280,7 +280,7 @@ def wait_script(name,
|
||||
template=None,
|
||||
onlyif=None,
|
||||
unless=None,
|
||||
cwd='/root',
|
||||
cwd=None,
|
||||
user=None,
|
||||
group=None,
|
||||
shell=None,
|
||||
@ -445,7 +445,7 @@ def script(name,
|
||||
template=None,
|
||||
onlyif=None,
|
||||
unless=None,
|
||||
cwd='/root',
|
||||
cwd=None,
|
||||
user=None,
|
||||
group=None,
|
||||
shell=None,
|
||||
@ -505,7 +505,7 @@ def script(name,
|
||||
'name': name,
|
||||
'result': False}
|
||||
|
||||
if not os.path.isdir(cwd):
|
||||
if cwd and not os.path.isdir(cwd):
|
||||
ret['comment'] = 'Desired working directory is not available'
|
||||
return ret
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user