summaryrefslogtreecommitdiff
path: root/ironic/drivers/modules/redfish/management.py
diff options
context:
space:
mode:
authorRichard Pioso <richard.pioso@dell.com>2020-06-21 18:05:31 -0400
committerRichard Pioso <richard.pioso@dell.com>2020-07-05 03:52:12 -0400
commit91b0f738347cdbcb87c320e80023657b1824b6a5 (patch)
treeb73c3efd339c48e0ea4c4d13f33aba86c255cd21 /ironic/drivers/modules/redfish/management.py
parent5026854e318fc8d324c18896e51e666b1064b1d4 (diff)
downloadironic-91b0f738347cdbcb87c320e80023657b1824b6a5.tar.gz
Correct Redfish boot once fallback conditional
This corrects the variable examined to determine if falling back from Redfish boot source override enabled continuous to once should be performed. The value of the variable 'enabled', instead of 'desired_enabled', should be used. Story: 2007733 Task: 40273 Change-Id: I26bf32c7f824e8e5ca7018d491e0bc9dc96a8671
Diffstat (limited to 'ironic/drivers/modules/redfish/management.py')
-rw-r--r--ironic/drivers/modules/redfish/management.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic/drivers/modules/redfish/management.py b/ironic/drivers/modules/redfish/management.py
index f415b6d20..22ef03b49 100644
--- a/ironic/drivers/modules/redfish/management.py
+++ b/ironic/drivers/modules/redfish/management.py
@@ -90,7 +90,7 @@ def _set_boot_device(task, system, device, persistent=False):
try:
system.set_system_boot_options(device, enabled=enabled)
except sushy.exceptions.SushyError as e:
- if desired_enabled == sushy.BOOT_SOURCE_ENABLED_CONTINUOUS:
+ if enabled == sushy.BOOT_SOURCE_ENABLED_CONTINUOUS:
# NOTE(dtantsur): continuous boot device settings have been
# removed from Redfish, and some vendors stopped supporting
# it before an alternative was provided. As a work around,