From 3b38d8ac430d225f4836e0c879d8dee199783be6 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 30 Jan 2017 16:38:43 -0500 Subject: [PATCH] Assure deterministic enumeration of areas nodegroup must be restored first. --- confluent_server/confluent/config/configmanager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/confluent_server/confluent/config/configmanager.py b/confluent_server/confluent/config/configmanager.py index 10805ea7..4a36a97d 100644 --- a/confluent_server/confluent/config/configmanager.py +++ b/confluent_server/confluent/config/configmanager.py @@ -1246,7 +1246,9 @@ class ConfigManager(object): pass # Now we have to iterate through each fixed up element, using the # set attribute to flesh out inheritence and expressions - for confarea in tmpconfig: + for confarea in _config_areas: + if confarea not in tmpconfig: + continue if confarea == 'nodes': self.set_node_attributes(tmpconfig[confarea], True) elif confarea == 'nodegroups':