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,
|
def wait(name,
|
||||||
onlyif=None,
|
onlyif=None,
|
||||||
unless=None,
|
unless=None,
|
||||||
cwd='/root',
|
cwd=None,
|
||||||
user=None,
|
user=None,
|
||||||
group=None,
|
group=None,
|
||||||
shell=None,
|
shell=None,
|
||||||
@ -280,7 +280,7 @@ def wait_script(name,
|
|||||||
template=None,
|
template=None,
|
||||||
onlyif=None,
|
onlyif=None,
|
||||||
unless=None,
|
unless=None,
|
||||||
cwd='/root',
|
cwd=None,
|
||||||
user=None,
|
user=None,
|
||||||
group=None,
|
group=None,
|
||||||
shell=None,
|
shell=None,
|
||||||
@ -445,7 +445,7 @@ def script(name,
|
|||||||
template=None,
|
template=None,
|
||||||
onlyif=None,
|
onlyif=None,
|
||||||
unless=None,
|
unless=None,
|
||||||
cwd='/root',
|
cwd=None,
|
||||||
user=None,
|
user=None,
|
||||||
group=None,
|
group=None,
|
||||||
shell=None,
|
shell=None,
|
||||||
@ -505,7 +505,7 @@ def script(name,
|
|||||||
'name': name,
|
'name': name,
|
||||||
'result': False}
|
'result': False}
|
||||||
|
|
||||||
if not os.path.isdir(cwd):
|
if cwd and not os.path.isdir(cwd):
|
||||||
ret['comment'] = 'Desired working directory is not available'
|
ret['comment'] = 'Desired working directory is not available'
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user