]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks: fix not enough values to unpack value error
authorXiubo Li <xiubli@redhat.com>
Fri, 11 Dec 2020 15:07:25 +0000 (23:07 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 17 Dec 2020 12:38:48 +0000 (20:38 +0800)
Fixes: https://tracker.ceph.com/issues/47439
Signed-off-by: Xiubo Li <xiubli@redhat.com>
qa/tasks/cram.py

index f4ac41f81e628306ad88b1fec46900707ff4e302..106e5f3262ff335fd1e6e9e9e5c2f915b98aafaa 100644 (file)
@@ -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)