flatten error message in remotescripterror as well
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								ad1e51cb2e
							
						
					
				
			
			
				commit
				
					
						67b1094712
					
				
			
		
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue