Fix error handling for actions
Change-Id: I0d6c8ad92c22d01d5994fcbd41d7d4de775d2fb1 Closes-bug: #1719947
This commit is contained in:
parent
27bba766da
commit
aacefea28d
@ -88,8 +88,8 @@ class WorkflowActionError(Exception):
|
||||
"""Workflow action failed"""
|
||||
msg_format = "Action {} execution failed: {}"
|
||||
|
||||
def __init__(self, message, action='', output=''):
|
||||
message = message.format(action, output)
|
||||
def __init__(self, action='', output=''):
|
||||
message = self.msg_format.format(action, output)
|
||||
super(WorkflowActionError, self).__init__(message)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user