summaryrefslogtreecommitdiff
path: root/ironic/drivers/modules/agent_base_vendor.py
diff options
context:
space:
mode:
Diffstat (limited to 'ironic/drivers/modules/agent_base_vendor.py')
-rw-r--r--ironic/drivers/modules/agent_base_vendor.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ironic/drivers/modules/agent_base_vendor.py b/ironic/drivers/modules/agent_base_vendor.py
index f09aa4aff..5f4478b9f 100644
--- a/ironic/drivers/modules/agent_base_vendor.py
+++ b/ironic/drivers/modules/agent_base_vendor.py
@@ -318,7 +318,8 @@ class BaseAgentVendor(base.VendorInterface):
# processing so the command hasn't started yet
return
- last_step = last_command['command_result'].get('clean_step')
+ last_result = last_command.get('command_result') or {}
+ last_step = last_result.get('clean_step')
if last_command['command_status'] == 'RUNNING':
return
elif (last_command['command_status'] == 'SUCCEEDED' and