From: Kefu Chai Date: Tue, 7 Apr 2020 15:05:30 +0000 (+0800) Subject: qa/tasks/cephadm.py: decode data returned by teuthology.get_file() X-Git-Tag: v16.1.0~2648^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6eb57a2a4fc63771096f8fd08c02b2bda49c9301;p=ceph.git qa/tasks/cephadm.py: decode data returned by teuthology.get_file() it's used as part of the command line sent to shell, so we need to decode it first. Signed-off-by: Kefu Chai --- diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index 5703c7ad27227..1ffd02553dceb 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -391,7 +391,7 @@ def ceph_bootstrap(ctx, config): ssh_pub_key = teuthology.get_file( remote=bootstrap_remote, path='{}/{}.pub'.format(testdir, cluster_name) - ).strip() + ).decode('ascii').strip() log.info('Installing pub ssh key for root users...') ctx.cluster.run(args=[