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>
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)