# HG changeset patch
# User Philippe Alcoy <phili...@alcoy.co.uk>
# Date 1340188944 -25200
# Node ID f6ce2daddba6234643f715c46b28d5562940eb1f
# Parent  add12b838ef461b20eec223e551bf508038dc640
Fix ha.cf node parsing in ha_propagate

diff -r add12b838ef4 -r f6ce2daddba6 heartbeat/lib/ha_propagate.in
--- a/heartbeat/lib/ha_propagate.in     Mon Apr 09 17:50:27 2012 +0200
+++ b/heartbeat/lib/ha_propagate.in     Wed Jun 20 17:42:24 2012 +0700
@@ -27,9 +27,8 @@
 for line in f:
     if line.startswith("node"):
        toks = line.split()
-       if (len(toks) == 2):
-         nodeName = toks[1]
-         nodes.append(nodeName)
+       if (len(toks) > 0):
+         nodes = toks[1:]
 f.close()
 
 thisnode = os.uname()[1]
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to