mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
spacewalk.call raises error on fail
This commit is contained in:
parent
e7c47edfe8
commit
7521b64f03
@ -186,7 +186,8 @@ def call(server, command, *args, **kwargs):
|
||||
try:
|
||||
output = endpoint(key, *arguments)
|
||||
except Exception as e:
|
||||
raise Exception('Spacewalk call failed: {0}'.format(e))
|
||||
raise Exception('Spacewalk call failed: {0}'.format(str(e)))
|
||||
output = 'failed'
|
||||
|
||||
call = '{0} {1}'.format(command, arguments)
|
||||
return {call: output}
|
||||
|
Loading…
Reference in New Issue
Block a user