From 67b109471257b11dc3d5c2b6bc844d0bcc2bb2c8 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 15 Oct 2011 01:25:57 +0200 Subject: [PATCH] flatten error message in remotescripterror as well Signed-off-by: Nico Schottelius --- lib/cdist/exec/remote.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cdist/exec/remote.py b/lib/cdist/exec/remote.py index c876adf1..943b8992 100644 --- a/lib/cdist/exec/remote.py +++ b/lib/cdist/exec/remote.py @@ -38,7 +38,8 @@ class RemoteScriptError(cdist.Error): self.script_content = script_content def __str__(self): - return "Remote script execution failed: %s %s" % (self.script, self.command) + plain_command = " ".join(self.command) + return "Remote script execution failed: %s" % plain_command class DecodeError(cdist.Error): def __init__(self, command):