mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-23 01:53:28 +00:00
Add noderange to nodegroupattrib
noderange attribute on group was not being presented by nodegroupattrib all. Add the attribute explicitly to handle the discrepency.
This commit is contained in:
parent
e6b8d0dabc
commit
add1a1b32a
@ -39,6 +39,7 @@ def retrieve_nodegroup(nodegroup, element, configmanager, inputdata):
|
||||
if element == 'all':
|
||||
theattrs = set(allattributes.node).union(set(grpcfg))
|
||||
theattrs.add('nodes')
|
||||
theattrs.add('noderange')
|
||||
for attribute in sorted(theattrs):
|
||||
if attribute == 'groups':
|
||||
continue
|
||||
@ -51,6 +52,10 @@ def retrieve_nodegroup(nodegroup, element, configmanager, inputdata):
|
||||
val = grpcfg[attribute]
|
||||
else:
|
||||
val = {'value': None}
|
||||
if attribute == 'noderange':
|
||||
val['desc'] = 'The noderange this group is expanded ' \
|
||||
'to when used in noderange, exclusive with static ' \
|
||||
'nodes'
|
||||
if attribute.startswith('secret.'):
|
||||
yield msg.CryptedAttributes(
|
||||
kv={attribute: val},
|
||||
|
Loading…
Reference in New Issue
Block a user