]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
Fix rsync username when using local_mirror 402/head
authorWanlong Gao <wanlong.gao@easystack.cn>
Tue, 14 Jun 2016 10:41:56 +0000 (18:41 +0800)
committerWanlong Gao <wanlong.gao@easystack.cn>
Tue, 14 Jun 2016 11:25:49 +0000 (19:25 +0800)
We should use the configured username for rsync to connect
to the remote host.

Signed-off-by: Wanlong Gao <wanlong.gao@easystack.cn>
ceph_deploy/install.py

index 4449de308e3fe1c4ca655e1fc00cc7376508931c..bd4df20327b512300182edfb68f1a808613b7292 100644 (file)
@@ -147,6 +147,8 @@ def install(args):
             gpg_url = gpg_fallback
 
         if args.local_mirror:
+            if args.username:
+                hostname = "%s@%s" % (args.username, hostname)
             remoto.rsync(hostname, args.local_mirror, '/opt/ceph-deploy/repo', distro.conn.logger, sudo=True)
             repo_url = 'file:///opt/ceph-deploy/repo'
             gpg_url = 'file:///opt/ceph-deploy/repo/release.asc'