From 9710ba0b54b19baf9aa1145fdce1a396ca413afb Mon Sep 17 00:00:00 2001
From: Milind Changire <mchangir@redhat.com>
Date: Mon, 19 Jun 2017 19:09:11 +0530
Subject: [PATCH 521/525] tools/glusterfind: initialize variable 'end'
Problem:
syntax error due to uninitialized variable 'end'
Solution:
set end = -1
mainline:
> BUG: 1462241
> Reviewed-on: https://review.gluster.org/17557
> Smoke: Gluster Build System <jenkins@build.gluster.org>
> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
> Reviewed-by: Aravinda VK <avishwan@redhat.com>
(cherry picked from commit 3011af67734ac1ef0e73775dc265483f2c5dea91)
Change-Id: Ia8b500e9dd5304d0832e5f594abca0b5b2ab357e
BUG: 1462753
Signed-off-by: Milind Changire <mchangir@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/109519
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
---
tools/glusterfind/src/changelog.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/glusterfind/src/changelog.py b/tools/glusterfind/src/changelog.py
index ec38bfa..2376af2 100644
--- a/tools/glusterfind/src/changelog.py
+++ b/tools/glusterfind/src/changelog.py
@@ -385,6 +385,7 @@ if __name__ == "__main__":
mkdirp(os.path.join(session_dir, args.volume), exit_on_err=True,
logger=logger)
+ end = -1
if args.only_query:
start = args.start
end = args.end
--
1.8.3.1