diff options
Diffstat (limited to 'geo-replication/syncdaemon/subcmds.py')
| -rw-r--r-- | geo-replication/syncdaemon/subcmds.py | 6 | 
1 files changed, 5 insertions, 1 deletions
diff --git a/geo-replication/syncdaemon/subcmds.py b/geo-replication/syncdaemon/subcmds.py index 4ece7e06b89..f8515f2607b 100644 --- a/geo-replication/syncdaemon/subcmds.py +++ b/geo-replication/syncdaemon/subcmds.py @@ -73,7 +73,11 @@ def subcmd_worker(args):      Popen.init_errhandler()      fcntl.fcntl(args.feedback_fd, fcntl.F_SETFD, fcntl.FD_CLOEXEC)      local = GLUSTER("localhost", args.master) -    slavehost, slavevol = args.slave.split("::") +    slave_url, slavevol = args.slave.split("::") +    if "@" not in slave_url: +        slavehost = args.resource_remote +    else: +        slavehost = "%s@%s" % (slave_url.split("@")[0], args.resource_remote)      remote = SSH(slavehost, slavevol)      remote.connect_remote()      local.connect()  | 
