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

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