From: Alfredo Deza Date: Thu, 17 Apr 2014 16:26:09 +0000 (-0400) Subject: clean up imports X-Git-Tag: v1.5.0~10^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=00be2e8e2760c4eb2d42c484f32568ad28d01dd8;p=ceph-deploy.git clean up imports Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/install.py b/ceph_deploy/install.py index 2ca27c8..db38174 100644 --- a/ceph_deploy/install.py +++ b/ceph_deploy/install.py @@ -4,7 +4,7 @@ import os from ceph_deploy import hosts from ceph_deploy.cliutil import priority -from ceph_deploy.lib.remoto import process +from ceph_deploy.lib.remoto import process, rsync LOG = logging.getLogger(__name__) @@ -57,7 +57,6 @@ def install(args): gpg_url = gpg_fallback if args.local_mirror: - from .lib.remoto import rsync 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' @@ -375,7 +374,7 @@ def make(parser): parser.add_argument( '--local-mirror', nargs='?', - const='URL', + const='PATH', default=None, help='Fetch packages and push them to hosts for a local repo mirror', )