2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-16 18:49:04 +00:00

Fix nodeattrib

nodeattrib was broken by the nodeconfig changes
This commit is contained in:
Jarrod Johnson 2018-02-08 13:45:17 -05:00
parent bac37dfa8d
commit 414572f626

View File

@ -315,7 +315,7 @@ def print_attrib_path(path, session, requestargs, options, rename=None):
for node in sorted(res['databynode']):
for attr, val in sorted(
res['databynode'][node].items(),
key=lambda (k, v): v.get('sortid', k) if v else k):
key=lambda (k, v): v.get('sortid', k) if isinstance(v, dict) else k):
seenattributes.add(attr)
if rename:
printattr = rename.get(attr, attr)