else this:
totem/interface[1]/member[1]/memberaddr = x
totem/interface[1]/member[3]/memberaddr = z
totem/interface[1]/member[2]/memberaddr = y

would result in "2" overwriting "3"

Signed-off-by: Angus Salkeld <asalk...@redhat.com>
---
 cts/corosync.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/cts/corosync.py b/cts/corosync.py
index 70dff3c..7ba5bb4 100644
--- a/cts/corosync.py
+++ b/cts/corosync.py
@@ -180,7 +180,8 @@ class corosync_flatiron(ClusterManager):
 
     def install_all_config(self):
         tmp1 = {}
-        for c in self.new_config:
+        sorted_keys = sorted(self.new_config.keys())
+        for c in sorted_keys:
             self.log('configuring: ' + c + ' = '+ str(self.new_config[c]))
             self.config.set (c, self.new_config[c])
             self.applied_config[c] = self.new_config[c]
-- 
1.7.3.1

_______________________________________________
Openais mailing list
Openais@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to