From 683d7940c4fd0e3392b67101f0d5a2baeb2c0171 Mon Sep 17 00:00:00 2001 From: Shwetha K Acharya Date: Fri, 21 Aug 2020 12:41:36 +0530 Subject: geo-rep: Fix string comparison Backport of: >Patch link: https://review.gluster.org/#/c/glusterfs/+/24865/ >Fixes: #1438 >Change-Id: If9f1c2e89e504512bcf77608fb4a4fedb19f0399 >Signed-off-by: Kotresh HR Fixes: #1438 Change-Id: If9f1c2e89e504512bcf77608fb4a4fedb19f0399 Signed-off-by: Shwetha K Acharya (cherry picked from commit 005d2ac1d8cc57e0e36f7cf230ae09a4f860bd16) --- geo-replication/syncdaemon/syncdutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geo-replication/syncdaemon/syncdutils.py b/geo-replication/syncdaemon/syncdutils.py index 842bc6f5ea8..6b5a478c328 100644 --- a/geo-replication/syncdaemon/syncdutils.py +++ b/geo-replication/syncdaemon/syncdutils.py @@ -702,7 +702,7 @@ def get_slv_dir_path(slv_host, slv_volume, gfid): if not isinstance(realpath, int): basename = os.path.basename(realpath).rstrip('\x00') dirpath = os.path.dirname(realpath) - if dirpath is "/": + if dirpath == "/": pargfid = ROOT_GFID else: dirpath = dirpath.strip("/") -- cgit