2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

Fix nodebmcreset on bad noderange

This prevents confusing python stack when
a bad noderange is specified.
This commit is contained in:
Jarrod Johnson 2020-01-30 14:35:58 -05:00
parent c99d01dffc
commit 22f6198f60

View File

@ -47,6 +47,8 @@ exitcode = 0
errorNodes = set([])
session.stop_if_noderange_over(noderange, options.maxnodes)
success = session.simple_noderange_command(noderange, 'configuration/management_controller/reset', 'reset', key='state', errnodes=errorNodes) # = 0 if successful
if success != 0:
sys.exit(success)
# Determine which nodes were successful and print them