diff --git a/lib/cdist/exec/local.py b/lib/cdist/exec/local.py index 56c29cb7..59f1ee4d 100644 --- a/lib/cdist/exec/local.py +++ b/lib/cdist/exec/local.py @@ -40,7 +40,8 @@ class LocalScriptError(cdist.Error): self.script_content = script_content def __str__(self): - return "Local script execution failed: %s %s" % (self.script, self.command) + plain_command = " ".join(self.command) + return "Local script execution failed: %s %s" % (self.script, plain_command) class Local(object):