Follow-up patch for rescue extension for CoreOS
This patch addresses few minor comments in commit a659306272542dd38420cb118cc7b04b1e8cf377 Change-Id: Id5b48e3cc96c8807c471c947da3e233cebdf687e Related-Bug: #1526449
This commit is contained in:
parent
a3463dc57d
commit
f08636fe8b
ironic_python_agent
@ -343,7 +343,7 @@ class IronicPythonAgent(base.ExecuteCommandMixin):
|
||||
try:
|
||||
server.handle_request()
|
||||
except BaseException as e:
|
||||
msg = "Failed due to unknow exception. Error %s" % e
|
||||
msg = "Failed due to an unknown exception. Error %s" % e
|
||||
LOG.exception(msg)
|
||||
raise errors.IronicAPIError(msg)
|
||||
LOG.info('shutting down')
|
||||
|
@ -244,7 +244,7 @@ class TestBaseAgent(ironic_agent_base.IronicAgentTest):
|
||||
}
|
||||
|
||||
self.assertRaisesRegex(errors.IronicAPIError,
|
||||
'Failed due to unknow exception.',
|
||||
'Failed due to an unknown exception.',
|
||||
self.agent.run)
|
||||
|
||||
self.assertTrue(mock_wait.called)
|
||||
|
Loading…
x
Reference in New Issue
Block a user