2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

Fix location of calling the noderange check

This commit is contained in:
Jarrod Johnson 2019-10-23 16:27:18 -04:00
parent 6f568919e1
commit 559e96f7ff

View File

@ -55,7 +55,6 @@ if len(sys.argv) > 3:
sys.exit(1)
if len(sys.argv) == 3:
if sys.argv[2] == 'clear':
session.stop_if_noderange_over(noderange, options.maxnodes)
deletemode = True
else:
argparser.print_help()
@ -93,6 +92,7 @@ def format_event(evt):
if deletemode:
func = session.delete
session.stop_if_noderange_over(noderange, options.maxnodes)
else:
func = session.read
for rsp in func('/noderange/{0}/events/hardware/log'.format(noderange)):