소스 검색

CTS: sort the configuration - prevent duplicates in the config file

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld 15 년 전
부모
커밋
b1d65a7e8c
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      cts/corosync.py

+ 2 - 1
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]