Blame SOURCES/bz2010710-2-fence_amt_ws-boot-option.patch

ce1a35
From 9812473270e9a404c632358c1debfa4a1fb440fe Mon Sep 17 00:00:00 2001
ce1a35
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
ce1a35
Date: Wed, 20 Oct 2021 15:46:42 +0200
ce1a35
Subject: [PATCH] fence_amt_ws: fix --boot-option (choices are uppercased while
ce1a35
 getting parsed)
ce1a35
ce1a35
---
ce1a35
 agents/amt_ws/fence_amt_ws.py | 8 ++++----
ce1a35
 1 file changed, 4 insertions(+), 4 deletions(-)
ce1a35
ce1a35
diff --git a/agents/amt_ws/fence_amt_ws.py b/agents/amt_ws/fence_amt_ws.py
ce1a35
index 122cec309..5e7452a97 100755
ce1a35
--- a/agents/amt_ws/fence_amt_ws.py
ce1a35
+++ b/agents/amt_ws/fence_amt_ws.py
ce1a35
@@ -146,13 +146,13 @@ def set_boot_order(_, client, options):
ce1a35
     wsman = 'http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd'
ce1a35
     namespace = CIM_BootConfigSetting
ce1a35
 
ce1a35
-    if options["--boot-option"] == "pxe":
ce1a35
+    if options["--boot-option"] == "PXE":
ce1a35
         device = "Intel(r) AMT: Force PXE Boot"
ce1a35
-    elif options["--boot-option"] in ["hd", "hdsafe"]:
ce1a35
+    elif options["--boot-option"] in ["HD", "HDSAFE"]:
ce1a35
         device = "Intel(r) AMT: Force Hard-drive Boot"
ce1a35
-    elif options["--boot-option"] == "cd":
ce1a35
+    elif options["--boot-option"] == "CD":
ce1a35
         device = "Intel(r) AMT: Force CD/DVD Boot"
ce1a35
-    elif options["--boot-option"] == "diag":
ce1a35
+    elif options["--boot-option"] == "DIAG":
ce1a35
         device = "Intel(r) AMT: Force Diagnostic Boot"
ce1a35
     else:
ce1a35
         logging.error('Boot device: %s not supported.', \