From 830514db84987d157d1071b86f016dc65e6a05d9 Mon Sep 17 00:00:00 2001 From: Ramana Raja Date: Wed, 10 Jun 2020 16:52:14 +0530 Subject: [PATCH] qa/tasks/cephfs/kernel_mount: fix incomplete py3 transition backport Commit 3dad1ac5f2db97cc3445bdf14a80dbb3e11f7d21 wan an incomplete backport of 875b45f3c903781ba99dbd2fcf4d2fc89001c25b. The missing commit lines are added here. Introduced-by: 3dad1ac5f2db97cc3445bdf14a80dbb3e11f7d21 Fixes: https://tracker.ceph.com/issues/45966 Signed-off-by: Ramana Raja --- qa/tasks/cephfs/kernel_mount.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qa/tasks/cephfs/kernel_mount.py b/qa/tasks/cephfs/kernel_mount.py index a27293c6dc89f..3df4bdec5260e 100644 --- a/qa/tasks/cephfs/kernel_mount.py +++ b/qa/tasks/cephfs/kernel_mount.py @@ -210,10 +210,10 @@ class KernelMount(CephFSMount): print(json.dumps(get_id_to_dir())) """) - p = self.client_remote.run(args=[ - 'sudo', 'python', '-c', pyscript - ], stdout=StringIO(), timeout=(5*60)) - client_id_to_dir = json.loads(p.stdout.getvalue()) + output = self.client_remote.sh([ + 'sudo', 'python3', '-c', pyscript + ], timeout=(5*60)) + client_id_to_dir = json.loads(output) try: return client_id_to_dir[self.client_id] -- 2.39.5