]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix issues in exec_on_cleanup
authorlisali <xiaoyan.li@intel.com>
Tue, 9 Feb 2021 15:38:16 +0000 (23:38 +0800)
committerJason Dillaman <dillaman@redhat.com>
Wed, 24 Feb 2021 21:31:56 +0000 (16:31 -0500)
Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
(cherry picked from commit 898f9d69793fd0a6a779f2e4a32ad8ce5748951a)

qa/tasks/exec_on_cleanup.py

index a7c7ee5dae92e67ddac8e026622bc278df697262..5a630781abb16bdedf5933ee7086c930c8a89861 100644 (file)
@@ -45,17 +45,17 @@ def task(ctx, config):
             roles = teuthology.all_roles(ctx.cluster)
             config = dict((id_, a) for id_ in roles)
 
-            for role, ls in config.items():
-                (remote,) = ctx.cluster.only(role).remotes.keys()
-                log.info('Running commands on role %s host %s', role, remote.name)
-                for c in ls:
-                    c.replace('$TESTDIR', testdir)
-                    remote.run(
-                        args=[
-                            'sudo',
-                            'TESTDIR={tdir}'.format(tdir=testdir),
-                            'bash',
-                            '-c',
-                            c],
-                    )
+        for role, ls in config.items():
+            (remote,) = ctx.cluster.only(role).remotes.keys()
+            log.info('Running commands on role %s host %s', role, remote.name)
+            for c in ls:
+                c.replace('$TESTDIR', testdir)
+                remote.run(
+                    args=[
+                        'sudo',
+                        'TESTDIR={tdir}'.format(tdir=testdir),
+                        'bash',
+                        '-c',
+                        c],
+                )