Follow-up patch for rescue extension for CoreOS

This patch addresses few minor comments in commit
a659306272

Change-Id: Id5b48e3cc96c8807c471c947da3e233cebdf687e
Related-Bug: #1526449
This commit is contained in:
Shivanand Tendulker 2018-01-27 08:11:04 -05:00 committed by Julia Kreger
parent a3463dc57d
commit f08636fe8b
2 changed files with 2 additions and 2 deletions

View File

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

View File

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