2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 11:30:23 +00:00

Add debug of broken expression to nodelist

If an expression is invalid, have nodelist give the error data
allowing the user to see and potentially take action.
This commit is contained in:
Jarrod Johnson 2017-02-10 16:41:47 -05:00
parent 9e4bb84932
commit f46269a6f2

View File

@ -76,7 +76,11 @@ if len(args) > 1:
attrout = '{0}: {1}: ********'.format(node, attr)
else:
attrout = '{0}: {1}:'.format(node, attr)
if options.blame:
elif 'broken' in currattr:
attrout = '{0}: {1}: *ERROR* BROKEN EXPRESSION: ' \
'{2}'.format(node, attr,
currattr['broken'])
if options.blame or 'broken' in currattr:
blamedata = []
if 'inheritedfrom' in currattr:
blamedata.append('inherited from group {0}'.format(