Blame SOURCES/bz1274432-fence_brocade-fix_incorrect_return.patch

44709c
From 43b32a3bc37e49c9e5e4a68228e6dc845c79a2c4 Mon Sep 17 00:00:00 2001
44709c
From: John Ruemker <jruemker@redhat.com>
44709c
Date: Thu, 22 Oct 2015 13:30:42 -0400
44709c
Subject: [PATCH 2/2] fence_brocade: Fix incorrect return when getting status
44709c
 for "on", "off"
44709c
44709c
---
44709c
 fence/agents/brocade/fence_brocade.py | 2 +-
44709c
 1 file changed, 1 insertion(+), 1 deletion(-)
44709c
44709c
diff --git a/fence/agents/brocade/fence_brocade.py b/fence/agents/brocade/fence_brocade.py
44709c
index e5a5063..5257bcc 100644
44709c
--- a/fence/agents/brocade/fence_brocade.py
44709c
+++ b/fence/agents/brocade/fence_brocade.py
44709c
@@ -36,7 +36,7 @@ def get_power_status(conn, options):
44709c
 			status = "off" if len(tokens) > 7 and tokens[7] == "Disabled" else "on"
44709c
 			outlets[tokens[0]] = ("", status)
44709c
 
44709c
-	if options["--action"] == "status":
44709c
+	if ["list", "monitor"].count(options["--action"]) == 0:
44709c
 		(_, status) = outlets[options["--plug"]]
44709c
 		return status
44709c
 	else:
44709c
-- 
44709c
2.4.3
44709c