2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-21 17:11:58 +00:00

Fix nodeboot when used with -m

nodeboot was erroneously using sys.argv rather
than the processed args from optionparser.
This commit is contained in:
Jarrod Johnson 2020-02-19 14:36:10 -05:00
parent f6d4fef5e6
commit 6289cfaac4

View File

@ -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()