mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
Correct indentation in nodeeventlog
Mistakes were present in the whitespace for nodeeventlog, apply correct indentation.
This commit is contained in:
parent
dec0543ce3
commit
e153e8acd0
@ -74,13 +74,13 @@ for rsp in func('/noderange/{0}/events/hardware/log'.format(noderange)):
|
||||
sys.stderr.write(rsp['error'] + '\n')
|
||||
exitcode |= rsp['errorcode']
|
||||
if 'databynode' in rsp:
|
||||
nodedata = rsp['databynode']
|
||||
for node in nodedata:
|
||||
thisdata = nodedata[node]
|
||||
nodedata = rsp['databynode']
|
||||
for node in nodedata:
|
||||
thisdata = nodedata[node]
|
||||
if 'error' in thisdata:
|
||||
sys.stderr.write('{0}: {1}\n'.format(node, thisdata['error']))
|
||||
exitcode |= 1
|
||||
if 'events' in thisdata:
|
||||
if 'events' in thisdata:
|
||||
evtdata = thisdata['events']
|
||||
for evt in evtdata:
|
||||
print '{0}: {1}'.format(node, format_event(evt))
|
Loading…
Reference in New Issue
Block a user