]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/cephfs: don't strip any whitespace for get_shell_stdout
authorRishabh Dave <ridave@redhat.com>
Fri, 12 Jan 2024 10:28:41 +0000 (15:58 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 12 Mar 2025 18:47:10 +0000 (00:17 +0530)
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 <ridave@redhat.com>
qa/tasks/cephfs/mount.py

index ddf6c2657a0334676872fb70383857abafb8d139..edd8896205add36a63e9813a74fee84175874bc0 100644 (file)
@@ -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)