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

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