diff options
| author | Mark Goddard <mark@stackhpc.com> | 2019-12-12 17:13:08 +0000 |
|---|---|---|
| committer | Dmitry Tantsur <dtantsur@protonmail.com> | 2020-04-06 10:24:08 +0200 |
| commit | 1b4ce47921b6a09fbf2894b021217a87d82fe7aa (patch) | |
| tree | a1c0ec6b840c705658c51cb079d12d0b80a1e415 /ironic_python_agent/extensions/base.py | |
| parent | 0edb9d9f61ba8734949f49112e93b4b1ca211721 (diff) | |
| download | ironic-python-agent-1b4ce47921b6a09fbf2894b021217a87d82fe7aa.tar.gz | |
Add an ability to run in-band deploy steps
Mostly adaptation of cleaning methods.
Co-Authored-By: Dmitry Tantsur <dtantsur@redhat.com>
Change-Id: Ife0502391bbece46d619a20a825dfdb191d5c2b4
Story: 2006963
Task: 37791
Diffstat (limited to 'ironic_python_agent/extensions/base.py')
| -rw-r--r-- | ironic_python_agent/extensions/base.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ironic_python_agent/extensions/base.py b/ironic_python_agent/extensions/base.py index b15c844b..a4314098 100644 --- a/ironic_python_agent/extensions/base.py +++ b/ironic_python_agent/extensions/base.py @@ -33,7 +33,9 @@ class AgentCommandStatus(object): RUNNING = u'RUNNING' SUCCEEDED = u'SUCCEEDED' FAILED = u'FAILED' - CLEAN_VERSION_MISMATCH = u'CLEAN_VERSION_MISMATCH' + # TODO(dtantsur): keeping the same text for backward compatibility, change + # to just VERSION_MISMATCH one release after ironic is updated. + VERSION_MISMATCH = u'CLEAN_VERSION_MISMATCH' class BaseCommandResult(encoding.SerializableComparable): @@ -167,10 +169,10 @@ class AsyncCommandResult(BaseCommandResult): with self.command_state_lock: self.command_result = result self.command_status = AgentCommandStatus.SUCCEEDED - except errors.CleanVersionMismatch as e: + except errors.VersionMismatch as e: with self.command_state_lock: self.command_error = e - self.command_status = AgentCommandStatus.CLEAN_VERSION_MISMATCH + self.command_status = AgentCommandStatus.VERSION_MISMATCH self.command_result = None LOG.error('Clean version mismatch for command %s', self.command_name) |
