forked from ungleich-public/cdist
only print env, if existent
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
4906f604f0
commit
7882b4a3ac
1 changed files with 4 additions and 1 deletions
|
@ -38,7 +38,10 @@ def shell_run_or_debug_fail(script, *args, **kargs):
|
||||||
del kargs["remote_prefix"]
|
del kargs["remote_prefix"]
|
||||||
|
|
||||||
log.debug("Shell exec cmd: %s", args)
|
log.debug("Shell exec cmd: %s", args)
|
||||||
|
|
||||||
|
if 'env' in kargs:
|
||||||
log.debug("Shell exec env: %s", kargs['env'])
|
log.debug("Shell exec env: %s", kargs['env'])
|
||||||
|
|
||||||
try:
|
try:
|
||||||
subprocess.check_call(*args, **kargs)
|
subprocess.check_call(*args, **kargs)
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
|
|
Loading…
Reference in a new issue