From 84783c0c19c730863baa0ea034ef621ffdc7a52b Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 1 Dec 2022 14:09:25 -0500 Subject: [PATCH] Add error check to noderange for nodedeploy --- confluent_client/bin/nodedeploy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/confluent_client/bin/nodedeploy b/confluent_client/bin/nodedeploy index 210559b0..1dae7ac9 100755 --- a/confluent_client/bin/nodedeploy +++ b/confluent_client/bin/nodedeploy @@ -86,6 +86,10 @@ def main(args): c = client.Command() c.stop_if_noderange_over(args.noderange, args.maxnodes) errnodes = set([]) + for rsp in c.read('/noderange/{0}/nodes/'.format(args.noderange)): + if 'error' in rsp: + sys.stderr.write(rsp['error'] + '\n') + sys.exit(1) if not args.clear and args.network and not args.prepareonly: rc = c.simple_noderange_command(args.noderange, '/boot/nextdevice', 'network', bootmode='uefi',