From 559e96f7ff24afd06dc6f22a40f947dc67c2771f Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 23 Oct 2019 16:27:18 -0400 Subject: [PATCH] Fix location of calling the noderange check --- confluent_client/bin/nodeeventlog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_client/bin/nodeeventlog b/confluent_client/bin/nodeeventlog index c07b59f3..6447c578 100755 --- a/confluent_client/bin/nodeeventlog +++ b/confluent_client/bin/nodeeventlog @@ -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)):