From e021a22ccba9ac38e84463d7087639f23f3becd9 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 19 Feb 2014 19:44:23 -0500 Subject: [PATCH] Fix setting of nodes on a group In configmanager, 'nodes' had been special cased. The invalid rejection scheme failed to accomodate the special case, restore the functionality. --- confluent/config/configmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent/config/configmanager.py b/confluent/config/configmanager.py index df5abdd2..5276c38d 100644 --- a/confluent/config/configmanager.py +++ b/confluent/config/configmanager.py @@ -545,7 +545,7 @@ class ConfigManager(object): self._cfgstore['groups'][group] = {'nodes': set([])} cfgobj = self._cfgstore['groups'][group] for attr in attribmap[group].iterkeys(): - if (attr not in allattributes.node or + if attr != 'nodes' and (attr not in allattributes.node or ('type' in allattributes.node[attr] and not isinstance(attribmap[node][attr],allattributes.node[attr]['type']))): raise ValueError