RHEL5 - [fence] WTI should not power on/off plug if it is unable to get status
Marek Grác
marx@fedoraproject.org
Wed Oct 29 16:32:00 GMT 2008
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=fc2051344ab193479a396b75b9a055ace443c31b
Commit: fc2051344ab193479a396b75b9a055ace443c31b
Parent: 71c6153b1cdcca74b4c4f21b623deba233c2f1c6
Author: Marek 'marx' Grac <mgrac@redhat.com>
AuthorDate: Wed Oct 29 16:50:31 2008 +0100
Committer: Marek 'marx' Grac <mgrac@redhat.com>
CommitterDate: Wed Oct 29 16:50:31 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 e71ab29..808564a 100644
--- a/fence/agents/lib/fencing.py.py
+++ b/fence/agents/lib/fencing.py.py
@@ -359,7 +359,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":
More information about the Cluster-cvs
mailing list