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:
parent
88a55b8942
commit
e021a22ccb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user