flatten error message in remotescripterror as well

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-10-15 01:25:57 +02:00
parent ad1e51cb2e
commit 67b1094712
1 changed files with 2 additions and 1 deletions

View File

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