2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-09 21:15:53 +00:00

Update nodepower

Updated line 35 to address the syntax mismatch between usage and man page SYNOPSIS
This commit is contained in:
vmaneagit 2021-06-16 18:25:10 +03:00 committed by GitHub
parent f0693f6ee5
commit 7f74476e5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ if path.startswith('/opt'):
import confluent.client as client
argparser = optparse.OptionParser(
usage="Usage: %prog [options] noderange "
usage="Usage: %prog [options] <noderange> "
"([status|on|off|shutdown|boot|reset])")
argparser.add_option('-p', '--showprevious', dest='previous',
action='store_true', default=False,
@ -77,4 +77,4 @@ if options.previous:
# add dictionary to session
session.add_precede_dict(prev)
sys.exit(session.simple_noderange_command(noderange, '/power/state', setstate, promptover=options.maxnodes))
sys.exit(session.simple_noderange_command(noderange, '/power/state', setstate, promptover=options.maxnodes))