Blame SOURCES/bz2010709-1-fence_amt_ws-fix-or-causing-dead-code.patch

bc94d5
From 06855a8227fa91f6216119daa3d32d5858c62837 Mon Sep 17 00:00:00 2001
bc94d5
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
bc94d5
Date: Mon, 27 Sep 2021 12:05:41 +0200
bc94d5
Subject: [PATCH] fence_amt_ws: fix "or" causing dead code
bc94d5
bc94d5
---
bc94d5
 agents/amt_ws/fence_amt_ws.py | 2 +-
bc94d5
 1 file changed, 1 insertion(+), 1 deletion(-)
bc94d5
bc94d5
diff --git a/agents/amt_ws/fence_amt_ws.py b/agents/amt_ws/fence_amt_ws.py
bc94d5
index 23c8a61a4..122cec309 100755
bc94d5
--- a/agents/amt_ws/fence_amt_ws.py
bc94d5
+++ b/agents/amt_ws/fence_amt_ws.py
bc94d5
@@ -148,7 +148,7 @@ def set_boot_order(_, client, options):
bc94d5
 
bc94d5
     if options["--boot-option"] == "pxe":
bc94d5
         device = "Intel(r) AMT: Force PXE Boot"
bc94d5
-    elif options["--boot-option"] == "hd" or "hdsafe":
bc94d5
+    elif options["--boot-option"] in ["hd", "hdsafe"]:
bc94d5
         device = "Intel(r) AMT: Force Hard-drive Boot"
bc94d5
     elif options["--boot-option"] == "cd":
bc94d5
         device = "Intel(r) AMT: Force CD/DVD Boot"