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

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