Merge "Follow-up patch for rescue extension for CoreOS"

This commit is contained in:
Zuul 2018-01-31 02:26:36 +00:00 committed by Gerrit Code Review
commit 7fa0e9f8c3
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)