mirror of
https://github.com/xcat2/confluent.git
synced 2024-12-25 12:41:39 +00:00
Have confetty better handle noderange output
Have confetty print_result make a reasonable assumption to have noderange based output show relevant node and output.
This commit is contained in:
parent
a4f3366a57
commit
735cc268d1
@ -248,11 +248,14 @@ def print_result(res):
|
||||
attrstr = '%s="%s"' % (key, res[key]['value'])
|
||||
elif 'value' in res[key] and res[key]['value'] is None:
|
||||
attrstr = '%s=""' % key
|
||||
elif 'isset' in res[key] and res[key]['isset']:
|
||||
attrstr = '%s="********"' % key
|
||||
elif 'isset' in res[key] or not res[key]:
|
||||
attrstr = '%s=""' % key
|
||||
else:
|
||||
if 'isset' in res[key] and res[key]['isset']:
|
||||
attrstr = '%s="********"' % key
|
||||
else:
|
||||
attrstr = '%s=""' % key
|
||||
sys.stdout.write('{0}: '.format(key))
|
||||
print_result(res[key])
|
||||
continue
|
||||
if res[key] is not None and 'inheritedfrom' in res[key]:
|
||||
notes.append(
|
||||
'Inherited from %s' % res[key]['inheritedfrom'])
|
||||
|
Loading…
Reference in New Issue
Block a user