Browse Source

flatten error message in remotescripterror as well

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
feature_files_export
Nico Schottelius 12 years ago
parent
commit
67b1094712
  1. 3
      lib/cdist/exec/remote.py

3
lib/cdist/exec/remote.py vendored

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

Loading…
Cancel
Save