This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
STABLE2 - [fence] WTI should not power on/off plug if it is unable toget status
- From: "Fabio M. Di Nitto" <fabbione at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Thu, 30 Oct 2008 06:12:51 +0000 (UTC)
- Subject: STABLE2 - [fence] WTI should not power on/off plug if it is unable toget status
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=f29ab55aa97afa7359a741c19bfe12c4c832bf80
Commit: f29ab55aa97afa7359a741c19bfe12c4c832bf80
Parent: 73503509b29afbc0ea29a38ba3a41a7008edaf8e
Author: Marek 'marx' Grac <mgrac@redhat.com>
AuthorDate: Wed Oct 29 16:50:31 2008 +0100
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Thu Oct 30 07:12:26 2008 +0100
[fence] WTI should not power on/off plug if it is unable to get status
Fix #468904 - I have to remember difference between and/or
---
fence/agents/lib/fencing.py.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py
index 0a575bb..07aa51f 100644
--- a/fence/agents/lib/fencing.py.py
+++ b/fence/agents/lib/fencing.py.py
@@ -358,7 +358,7 @@ def wait_power_status(tn, options, get_power_fn):
def fence_action(tn, options, set_power_fn, get_power_fn):
status = get_power_fn(tn, options)
- if status != "on" or status != "off":
+ if status != "on" and status != "off":
fail(EC_STATUS)
if options["-o"] == "on":