From 9582b9b13a42fae4c7f38c22f9202eb893b6f1bc Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Fri, 12 Jan 2024 15:58:41 +0530 Subject: [PATCH] qa/cephfs: don't strip any whitespace for get_shell_stdout Whitespace is not removed from the end of the stdout returned by the method get_ceph_cmd_stdout(). Follow the same policy here since it is better to not do so (this whitespace can be useful, when copying Ceph auth keyrings from stdout to a file) and also for sake of uniformity of interfaces. Signed-off-by: Rishabh Dave --- qa/tasks/cephfs/mount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/tasks/cephfs/mount.py b/qa/tasks/cephfs/mount.py index ddf6c2657a0..edd8896205a 100644 --- a/qa/tasks/cephfs/mount.py +++ b/qa/tasks/cephfs/mount.py @@ -785,7 +785,7 @@ class CephFSMountBase(object): def get_shell_stdout(self, args, timeout=300, **kwargs): return self.run_shell(args=args, timeout=timeout, **kwargs).stdout.\ - getvalue().strip() + getvalue() def run_shell_payload(self, payload, wait=True, timeout=900, **kwargs): kwargs.setdefault('cwd', self.mountpoint) -- 2.39.5