2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-24 12:11:52 +00:00

Have blank values end with :

This is a bit more obvious for grep.
This commit is contained in:
Jarrod Johnson 2020-07-10 08:28:28 -04:00
parent b112cb0f16
commit 4a23ca3db1

View File

@ -465,7 +465,7 @@ def print_attrib_path(path, session, requestargs, options, rename=None, attrpref
if isinstance(val, list):
val = ','.join(val)
attrout = '{0}: {1}: {2}'.format(
node, printattr, val)
node, printattr, val).strip()
else:
attrout = '{0}: {1}:'.format(node, printattr)
elif 'isset' in currattr:
@ -473,7 +473,7 @@ def print_attrib_path(path, session, requestargs, options, rename=None, attrpref
attrout = '{0}: {1}: ********'.format(node,
printattr)
else:
attrout = '{0}: {1}: '.format(node, printattr)
attrout = '{0}: {1}:'.format(node, printattr)
elif 'broken' in currattr:
attrout = '{0}: {1}: *ERROR* BROKEN EXPRESSION: ' \
'{2}'.format(node, printattr,