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):