mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 11:01:09 +00:00
Updated for broken expressions
This commit is contained in:
parent
f2bbb7c355
commit
16f2a2b1eb
@ -121,7 +121,11 @@ if len(args) > 0:
|
||||
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(
|
||||
|
@ -66,11 +66,10 @@ This is different from setting the value to an empty string.
|
||||
`n2`: console.method: serial
|
||||
`n2`: hardwaremanagement.manager: 172.30.3.2
|
||||
|
||||
* Clear attribute on nodes of a simple noderange:
|
||||
* Clear attribute on nodes of a simple noderange, if you want to retain the variable set the attribute to "":
|
||||
`# nodeattrib n1-n2 -c console.method`
|
||||
`n1`: console.method:
|
||||
`n1`: hardwaremanagement.manager: 172.30.3.1
|
||||
`n2`: console.method:
|
||||
`n2`: hardwaremanagement.manager: 172.30.3.2
|
||||
`# nodeattrib n1-n2 console.method`
|
||||
Error: console.logging not a valid attribute
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user