fence-agents: RHEL6 - fence_brocade: Fix issue with 'list' introduced by 'monitor'

Marek GrĂ¡c marx at fedoraproject.org
Wed Jul 2 19:00:35 UTC 2014


Gitweb:        http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=1aa45f87922cf09ea1d5a378283bce1f4eb43bb6
Commit:        1aa45f87922cf09ea1d5a378283bce1f4eb43bb6
Parent:        10e1a224de1cf3af9d1a870faf3aa8a2533f86ca
Author:        Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate:    Wed Jul 2 20:59:52 2014 +0200
Committer:     Marek 'marx' Grac <mgrac at redhat.com>
CommitterDate: Wed Jul 2 20:59:52 2014 +0200

fence_brocade: Fix issue with 'list' introduced by 'monitor'

---
 fence/agents/brocade/fence_brocade.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fence/agents/brocade/fence_brocade.py b/fence/agents/brocade/fence_brocade.py
index be19f6b..685db3d 100644
--- a/fence/agents/brocade/fence_brocade.py
+++ b/fence/agents/brocade/fence_brocade.py
@@ -36,7 +36,7 @@ def get_power_status(conn, options):
 			status = "off" if len(tokens) > 7 and tokens[7] == "Disabled" else "on"
 			outlets[tokens[0]] = ("", status)
 
-	if options["-o"] != "monitor":
+	if ["list", "monitor"].count(options["-o"]) == 0:
 		(_, status) = outlets[options["-n"]]
 		return status
 	else:


More information about the cluster-commits mailing list