diff options
author | Kotresh HR <khiremat@redhat.com> | 2020-08-13 18:21:19 +0530 |
---|---|---|
committer | Kotresh HR <khiremat@redhat.com> | 2020-08-17 10:16:58 +0000 |
commit | 005d2ac1d8cc57e0e36f7cf230ae09a4f860bd16 (patch) | |
tree | a83fe82ccf5b8b6cae5beb7f8a9d1e832ff757a0 /geo-replication | |
parent | bb5801d1480314e09b4203d2525bd01aada5c683 (diff) |
geo-rep: Fix string comparison
Fixes: #1438
Change-Id: If9f1c2e89e504512bcf77608fb4a4fedb19f0399
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'geo-replication')
-rw-r--r-- | geo-replication/syncdaemon/syncdutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/geo-replication/syncdaemon/syncdutils.py b/geo-replication/syncdaemon/syncdutils.py index b3f3fd8a936..a3df103e76c 100644 --- a/geo-replication/syncdaemon/syncdutils.py +++ b/geo-replication/syncdaemon/syncdutils.py @@ -725,7 +725,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("/") |