From cfb86025fa7e882ebf198eaa008bb89d603a9e6f Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Fri, 11 Dec 2020 23:07:25 +0800 Subject: [PATCH] qa/tasks: fix not enough values to unpack value error Fixes: https://tracker.ceph.com/issues/47439 Signed-off-by: Xiubo Li --- qa/tasks/cram.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qa/tasks/cram.py b/qa/tasks/cram.py index f4ac41f81e6..106e5f3262f 100644 --- a/qa/tasks/cram.py +++ b/qa/tasks/cram.py @@ -65,7 +65,7 @@ def task(ctx, config): try: for client, tests in clients.items(): - (remote,) = ctx.cluster.only(client).remotes.keys() + (remote,) = (ctx.cluster.only(client).remotes.keys()) client_dir = '{tdir}/archive/cram.{role}'.format(tdir=testdir, role=client) remote.run( args=[ @@ -97,7 +97,7 @@ def task(ctx, config): _run_tests(ctx, role) finally: for client, tests in clients.items(): - (remote,) = ctx.cluster.only(client).remotes.keys() + (remote,) = (ctx.cluster.only(client).remotes.keys()) client_dir = '{tdir}/archive/cram.{role}'.format(tdir=testdir, role=client) test_files = set([test.rsplit('/', 1)[1] for test in tests]) @@ -136,7 +136,7 @@ def _run_tests(ctx, role): PREFIX = 'client.' assert role.startswith(PREFIX) id_ = role[len(PREFIX):] - (remote,) = ctx.cluster.only(role).remotes.keys() + (remote,) = (ctx.cluster.only(role).remotes.keys()) ceph_ref = ctx.summary.get('ceph-sha1', 'master') testdir = teuthology.get_testdir(ctx) -- 2.39.5