Merge "Followup to I07fb8115d254e877d8781207eaec203e3fdf8ad6"
This commit is contained in:
commit
0cdc41b3c1
@ -756,5 +756,5 @@ class VifInvalidForAttach(Conflict):
|
||||
|
||||
|
||||
class AgentAPIError(IronicException):
|
||||
_msg_fmt = _('Agent API for node %(node)s returned status %(status)s with '
|
||||
'error %(error)s')
|
||||
_msg_fmt = _('Agent API for node %(node)s returned HTTP status code '
|
||||
'%(status)s with error: %(error)s')
|
||||
|
@ -93,8 +93,8 @@ class AgentClient(object):
|
||||
'code': response.status_code})
|
||||
|
||||
if response.status_code >= http_client.BAD_REQUEST:
|
||||
LOG.error('Agent command %(method)s for node %(node)s failed '
|
||||
'expected 2xx HTTP status code, got %(code)d.',
|
||||
LOG.error('Agent command %(method)s for node %(node)s failed. '
|
||||
'Expected 2xx HTTP status code, got %(code)d.',
|
||||
{'method': method, 'node': node.uuid,
|
||||
'code': response.status_code})
|
||||
raise exception.AgentAPIError(node=node.uuid,
|
||||
|
Loading…
Reference in New Issue
Block a user