2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-29 00:31:09 +00:00

Fix nodeattrib behavior without argument

This commit is contained in:
Jarrod Johnson
2017-05-01 14:02:41 -04:00
parent 4fb41a991e
commit ce1a5b464f
+3 -2
View File
@@ -35,7 +35,7 @@ argparser = optparse.OptionParser(
argparser.add_option('-b', '--blame', action='store_true',
help='Show information about how attributes inherited')
argparser.add_option('-c', '--clear', action='store_true',
help='Clear variables')
help='Clear attributes')
(options, args) = argparser.parse_args()
@@ -46,7 +46,8 @@ try:
noderange = args[0]
nodelist = '/noderange/{0}/nodes/'.format(noderange)
except IndexError:
nodelist = '/nodes/'
argparser.print_help()
sys.exit(1)
session = client.Command()
exitcode = 0