From eea6a38f3342d38973fcc79ebdf4204dc94cc831 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 6 Oct 2011 13:39:08 +0200 Subject: [PATCH] cat only locally :-) Signed-off-by: Nico Schottelius --- lib/cdist/exec.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cdist/exec.py b/lib/cdist/exec.py index aaa2c13f..bb375404 100644 --- a/lib/cdist/exec.py +++ b/lib/cdist/exec.py @@ -45,7 +45,8 @@ def shell_run_or_debug_fail(script, *args, remote_prefix=False, **kargs): except subprocess.CalledProcessError: log.error("Code that raised the error:\n") - run_or_fail(["cat", script], remote_prefix=remote_prefix) + if remote_prefix: + run_or_fail(["cat", script], remote_prefix=remote_prefix) else: try: