From cdc1740a32915471b9c79a4409d5aedf6d6913f6 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 1 Oct 2014 11:23:37 -0400 Subject: [PATCH] do not detect sudo when attempting to copy ssh keys Signed-off-by: Alfredo Deza --- ceph_deploy/new.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph_deploy/new.py b/ceph_deploy/new.py index d87c3ec..87c6886 100644 --- a/ceph_deploy/new.py +++ b/ceph_deploy/new.py @@ -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( -- 2.47.3