From acc1f64f8802af235ef9ea16a63e7353f0c0345b Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Tue, 16 Apr 2019 11:35:39 -0400 Subject: [PATCH] util/ssh remoto now returns strings, not bytes on Python 3 Signed-off-by: Alfredo Deza Resolves: rm#39322 --- ceph_deploy/util/ssh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ceph_deploy/util/ssh.py b/ceph_deploy/util/ssh.py index 7c48d9c..5576371 100644 --- a/ceph_deploy/util/ssh.py +++ b/ceph_deploy/util/ssh.py @@ -20,8 +20,8 @@ def can_connect_passwordless(hostname): # Check to see if we can login, disabling password prompts command = ['ssh', '-CT', '-o', 'BatchMode=yes', hostname, 'true'] out, err, retval = remoto.process.check(conn, command, stop_on_error=False) - permission_denied_error = b'Permission denied ' - host_key_verify_error = b'Host key verification failed.' + permission_denied_error = 'Permission denied ' + host_key_verify_error = 'Host key verification failed.' has_key_error = False for line in err: if permission_denied_error in line or host_key_verify_error in line: -- 2.47.3