From f08636fe8be21779ddbb5c1e7d6f7391d8df07b9 Mon Sep 17 00:00:00 2001 From: Shivanand Tendulker Date: Sat, 27 Jan 2018 08:11:04 -0500 Subject: [PATCH] Follow-up patch for rescue extension for CoreOS This patch addresses few minor comments in commit a659306272542dd38420cb118cc7b04b1e8cf377 Change-Id: Id5b48e3cc96c8807c471c947da3e233cebdf687e Related-Bug: #1526449 --- ironic_python_agent/agent.py | 2 +- ironic_python_agent/tests/unit/test_agent.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ironic_python_agent/agent.py b/ironic_python_agent/agent.py index 0df622f8c..4ca6f7e4e 100644 --- a/ironic_python_agent/agent.py +++ b/ironic_python_agent/agent.py @@ -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') diff --git a/ironic_python_agent/tests/unit/test_agent.py b/ironic_python_agent/tests/unit/test_agent.py index 137121708..3a9024c83 100644 --- a/ironic_python_agent/tests/unit/test_agent.py +++ b/ironic_python_agent/tests/unit/test_agent.py @@ -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)