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

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