mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-12 02:38:20 +00:00
Fix exitcode for confetty noderange commands
The exitcode was not being set for noderange commands where each node may independently raise errors. Correct the oversight by catching each subelements errors.
This commit is contained in:
parent
c666b11138
commit
a24866c2df
@ -299,8 +299,11 @@ currchildren = None
|
||||
|
||||
|
||||
def print_result(res):
|
||||
global exitcode
|
||||
if 'errorcode' in res or 'error' in res:
|
||||
print(res['error'])
|
||||
if 'errorcode' in res:
|
||||
exitcode |= res['errorcode']
|
||||
return
|
||||
if 'databynode' in res:
|
||||
print_result(res['databynode'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user