only print env, if existent

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/feature_files_export
Nico Schottelius 13 years ago
parent 4906f604f0
commit 7882b4a3ac
  1. 5
      lib/cdist/exec.py

5
lib/cdist/exec.py vendored

@ -38,7 +38,10 @@ def shell_run_or_debug_fail(script, *args, **kargs):
del kargs["remote_prefix"]
log.debug("Shell exec cmd: %s", args)
log.debug("Shell exec env: %s", kargs['env'])
if 'env' in kargs:
log.debug("Shell exec env: %s", kargs['env'])
try:
subprocess.check_call(*args, **kargs)
except subprocess.CalledProcessError:

Loading…
Cancel
Save