cluster: RHEL55 - fencing: fence_apc unable to obtain plug status
Marek Grác
marx at fedoraproject.org
Mon Nov 9 13:10:56 UTC 2009
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=c39935e81f55e4e2b1b2b7b81994300a5a062cf9
Commit: c39935e81f55e4e2b1b2b7b81994300a5a062cf9
Parent: 42d1a31fd708b84d7984b507a4c056d416d3be7b
Author: Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate: Wed Nov 4 11:30:11 2009 +0100
Committer: Marek 'marx' Grac <mgrac at redhat.com>
CommitterDate: Mon Nov 9 14:07:52 2009 +0100
fencing: fence_apc unable to obtain plug status
In some cases APC can have additional output.
Resolves: bz#532916
---
fence/agents/apc/fence_apc.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fence/agents/apc/fence_apc.py b/fence/agents/apc/fence_apc.py
index ced7d39..3a8c194 100755
--- a/fence/agents/apc/fence_apc.py
+++ b/fence/agents/apc/fence_apc.py
@@ -71,7 +71,7 @@ def get_power_status(conn, options):
while True:
exp_result = conn.log_expect(options, [ options["-c"], "Press <ENTER>" ], int(options["-Y"]))
lines = conn.before.split("\n");
- show_re = re.compile('^\s*(\d+)- (.*?)\s+(ON|OFF)\s*$')
+ show_re = re.compile('^\s*(\d+)- (.*?)\s+(ON|OFF)\s*')
for x in lines:
res = show_re.search(x)
if (res != None):
More information about the cluster-commits
mailing list