Updated more occurances of a default cwd

This commit is contained in:
Seth House 2013-02-12 15:16:29 -07:00
parent ff38b2707f
commit 42bf698b75

View File

@ -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