From dbdf56ae3f87fc2765ad9cb528c1cfbadfde96ec Mon Sep 17 00:00:00 2001 From: Milind Changire Date: Tue, 6 Jun 2017 12:27:28 +0530 Subject: tools/glusterfind: add --end-time option Add optional --end-time argument to be used with --since-time when using the "query" command. "start" and "end" times are passed in the command-line to changelog.py only if --full has not been specified on command-line. -1 is passed to changelog.py as end time if user has not supplied --end-time on command-line. brickfind.py: Remove unused "start" command-line argument. Also: Minor indentation changes to keep flake8-2.7 happy. Change-Id: I063ef5459916f711503881ade5c4fc32374edad0 BUG: 1453151 Signed-off-by: Milind Changire Reviewed-on: https://review.gluster.org/17439 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Aravinda VK --- tools/glusterfind/src/brickfind.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/glusterfind/src/brickfind.py') diff --git a/tools/glusterfind/src/brickfind.py b/tools/glusterfind/src/brickfind.py index 439c8816f92..e914bacd4ab 100644 --- a/tools/glusterfind/src/brickfind.py +++ b/tools/glusterfind/src/brickfind.py @@ -62,9 +62,9 @@ def _get_args(): parser.add_argument("session", help="Session Name") parser.add_argument("volume", help="Volume Name") + parser.add_argument("node", help="Node Name") parser.add_argument("brick", help="Brick Name") parser.add_argument("outfile", help="Output File") - parser.add_argument("start", help="Start Time", type=float) parser.add_argument("tag", help="Tag to prefix file name with") parser.add_argument("--only-query", help="Only query, No session update", action="store_true") -- cgit