From 2795dfe7b9c36d7a5a6b9348be0fce32bb915065 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 18 Jul 2017 15:37:37 -0400 Subject: [PATCH] Only mod noderange if bad nodes detected This was triggering a defect in noderange. The defect should be fixed, but in the meantime, avoid tripping over it and looking weird anyway. --- confluent_client/bin/nodeboot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent_client/bin/nodeboot b/confluent_client/bin/nodeboot index 6edd7bf9..f8aa1adf 100755 --- a/confluent_client/bin/nodeboot +++ b/confluent_client/bin/nodeboot @@ -66,6 +66,7 @@ rc = session.simple_noderange_command(noderange, '/boot/nextdevice', bootdev, bootmode=bootmode, persistent=options.persist, errnodes=errnodes) -noderange = noderange + ',-(' + ','.join(errnodes) + ')' +if errnodes: + noderange = noderange + ',-(' + ','.join(errnodes) + ')' rc |= session.simple_noderange_command(noderange, '/power/state', 'boot') sys.exit(rc)