Merge "Followup to I07fb8115d254e877d8781207eaec203e3fdf8ad6"

This commit is contained in:
Zuul 2017-11-22 20:53:01 +00:00 committed by Gerrit Code Review
commit 0cdc41b3c1
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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,