mirror of
https://github.com/xcat2/confluent.git
synced 2025-08-21 10:40:28 +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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user