2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-15 04:07:51 +00:00

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.
This commit is contained in:
Jarrod Johnson 2014-02-19 19:44:23 -05:00
parent 88a55b8942
commit e021a22ccb

View File

@ -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