From fe3d79b5f1e89cc04a59edde04e3f5955ff52c63 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 7 Jul 2022 16:52:35 +0000 Subject: [PATCH] Fix typo in boot override configuration --- bootstrap-daemon/pvcbootstrapd/lib/redfish.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap-daemon/pvcbootstrapd/lib/redfish.py b/bootstrap-daemon/pvcbootstrapd/lib/redfish.py index 042b924..3696114 100755 --- a/bootstrap-daemon/pvcbootstrapd/lib/redfish.py +++ b/bootstrap-daemon/pvcbootstrapd/lib/redfish.py @@ -618,7 +618,7 @@ def set_boot_override(session, system_root, redfish_vendor, target): Set the system boot override to the desired target """ print(redfish_vendor) - system_details = session.get(system_root) + system_detail = session.get(system_root) def set_boot_override_dell(): # BootSourceOverrideEnabled': 'Disabled', 'BootSourceOverrideMode': 'UEFI', 'BootSourceOverrideTarget': 'None', 'UefiTargetBootSourceOverride': None, @@ -649,7 +649,7 @@ def set_boot_override(session, system_root, redfish_vendor, target): session.patch(system_root, {"Boot": {"BootSourceOverrideTarget": target}}) return True - if redfish_vendor in ["dell", "Dell"]: + if redfish_vendor == "Dell": return set_boot_override_dell() else: return set_boot_override_generic()