From: Xiubo Li Date: Fri, 11 Dec 2020 15:07:25 +0000 (+0800) Subject: qa/tasks: fix not enough values to unpack value error X-Git-Tag: v16.1.0~227^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cfb86025fa7e882ebf198eaa008bb89d603a9e6f;p=ceph.git qa/tasks: fix not enough values to unpack value error Fixes: https://tracker.ceph.com/issues/47439 Signed-off-by: Xiubo Li --- diff --git a/qa/tasks/cram.py b/qa/tasks/cram.py index f4ac41f81e62..106e5f3262ff 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)