From a20b6b473bf72224b0ea7752987d47d44b8b633c Mon Sep 17 00:00:00 2001 From: Kotresh H R Date: Thu, 15 May 2014 12:52:22 +0530 Subject: gsyncd/geo-rep: Fix remote vol info fetching for non-root Signed-off-by: Kotresh H R Change-Id: If1d2cab3fcfe2391105551e54f0b9729a7c204e4 BUG: 1077452 Reviewed-on: http://review.gluster.org/7767 Reviewed-by: Venky Shankar Tested-by: Venky Shankar --- geo-replication/syncdaemon/monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'geo-replication/syncdaemon/monitor.py') diff --git a/geo-replication/syncdaemon/monitor.py b/geo-replication/syncdaemon/monitor.py index c44735ffb3d..0c90997880f 100644 --- a/geo-replication/syncdaemon/monitor.py +++ b/geo-replication/syncdaemon/monitor.py @@ -267,7 +267,7 @@ def distribute(*resources): sbricks = {'host': 'localhost', 'dir': si.path} suuid = uuid.uuid5(uuid.NAMESPACE_URL, slave.get_url(canonical=True)) elif isinstance(si, GLUSTER): - svol = Volinfo(si.volume, si.host) + svol = Volinfo(si.volume, slave.remote_addr) sbricks = svol.bricks suuid = svol.uuid else: -- cgit