Followup to I07fb8115d254e877d8781207eaec203e3fdf8ad6

This adds punctuation to a log string and clarifies an
exception string.

Change-Id: Ifde1ebbc8457d33e8d063bf1dbb9b5fbf14857ea
Related-bug: 1542506
This commit is contained in:
Ruby Loo 2017-11-20 15:14:30 -05:00
parent b9ebc7f121
commit a7ef398337
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,