2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-29 04:50:21 +00:00

Fix display of group attributes

Something still seems off about it, but it is self contained to attributes plugin for now.
This commit is contained in:
Jarrod Johnson 2014-02-18 13:48:26 -05:00
parent 2b6188e0b6
commit b6853cfbe1

View File

@ -21,18 +21,18 @@ def retrieve_nodegroup(nodegroup, element, configmanager, inputdata):
if attribute == 'groups':
continue
if attribute in grpcfg:
val = grpcfg[attribute]['value']
val = grpcfg[attribute]
else:
val = None
val = {'value': None}
if attribute.startswith('secret.'):
yield msg.CryptedAttributes(
kv={attribute: None},
kv={attribute: val},
desc=allattributes.node[attribute]['description'])
elif isinstance(val, list):
raise Exception("TODO")
else:
yield msg.Attributes(
kv={attribute: val},
kv={attribute: val['value']},
desc=allattributes.node[attribute]['description'])
if element == 'current':
for attribute in sorted(grpcfg.iterkeys()):