From 6289cfaac4360788e82a1ebfff724fb1ace59bb6 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 19 Feb 2020 14:36:10 -0500 Subject: [PATCH] Fix nodeboot when used with -m nodeboot was erroneously using sys.argv rather than the processed args from optionparser. --- confluent_client/bin/nodeboot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_client/bin/nodeboot b/confluent_client/bin/nodeboot index 8a7bec03..a2c2f322 100755 --- a/confluent_client/bin/nodeboot +++ b/confluent_client/bin/nodeboot @@ -58,8 +58,8 @@ except IndexError: sys.exit(1) client.check_globbing(noderange) bootdev = None -if len(sys.argv) > 2: - bootdev = sys.argv[2] +if len(args) > 1: + bootdev = args[1] if bootdev in ('net', 'pxe'): bootdev = 'network' session = client.Command()