diff options
| author | Shivanand Tendulker <stendulker@gmail.com> | 2018-01-27 08:11:04 -0500 |
|---|---|---|
| committer | Julia Kreger <juliaashleykreger@gmail.com> | 2018-01-30 19:00:13 +0000 |
| commit | f08636fe8be21779ddbb5c1e7d6f7391d8df07b9 (patch) | |
| tree | 960ab6da5532f16cd6ce5655e9fd7afcc9856017 /ironic_python_agent | |
| parent | a3463dc57d1dc2dc34345ed3b476f6ebfbe5649c (diff) | |
| download | ironic-python-agent-f08636fe8be21779ddbb5c1e7d6f7391d8df07b9.tar.gz | |
Follow-up patch for rescue extension for CoreOS
This patch addresses few minor comments in commit
a659306272542dd38420cb118cc7b04b1e8cf377
Change-Id: Id5b48e3cc96c8807c471c947da3e233cebdf687e
Related-Bug: #1526449
Diffstat (limited to 'ironic_python_agent')
| -rw-r--r-- | ironic_python_agent/agent.py | 2 | ||||
| -rw-r--r-- | 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 0df622f8..4ca6f7e4 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 13712170..3a9024c8 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) |
