Skip to content

Commit 9582b9b

Browse files
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 <[email protected]>
1 parent 01d37d5 commit 9582b9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qa/tasks/cephfs/mount.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ def run_shell(self, args, **kwargs):
785785

786786
def get_shell_stdout(self, args, timeout=300, **kwargs):
787787
return self.run_shell(args=args, timeout=timeout, **kwargs).stdout.\
788-
getvalue().strip()
788+
getvalue()
789789

790790
def run_shell_payload(self, payload, wait=True, timeout=900, **kwargs):
791791
kwargs.setdefault('cwd', self.mountpoint)

0 commit comments

Comments
 (0)