]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
do not detect sudo when attempting to copy ssh keys 245/head
authorAlfredo Deza <alfredo.deza@inktank.com>
Wed, 1 Oct 2014 15:23:37 +0000 (11:23 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Wed, 1 Oct 2014 15:23:37 +0000 (11:23 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/new.py

index d87c3ec95071c77912274f55da567850dc587d02..87c688621c6f05dda1050814614f0766c4bc9d80 100644 (file)
@@ -58,7 +58,7 @@ def ssh_copy_keys(hostname, username=None):
 
     # Get the contents of id_rsa.pub and push it to the host
     LOG.info('will connect again with password prompt')
-    distro = hosts.get(hostname, username)  # XXX Add username
+    distro = hosts.get(hostname, username, detect_sudo=False)
     auth_keys_path = '.ssh/authorized_keys'
     if not distro.conn.remote_module.path_exists(auth_keys_path):
         distro.conn.logger.warning(