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

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