ceph_volume: perserve newlines in stdout and stderr when zapping

Because we have many commands we might need to run the
ANSIBLE_STDOUT_CALLBACK won't format these nicely because we're
not reporting these back at the root level of the json result.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
pull/2233/merge
Andrew Schoen 2018-03-28 11:10:17 -05:00 committed by Sébastien Han
parent c6e8f8fb11
commit 36e71f6532
1 changed files with 2 additions and 2 deletions

View File

@ -329,8 +329,8 @@ def remove_osd(module):
cmd_result = dict(
cmd=cmd,
stdout=out.rstrip(b"\r\n"),
stderr=err.rstrip(b"\r\n"),
stdout_lines=out.split("\n"),
stderr_lines=err.split("\n"),
rc=rc,
start=str(startd),
end=str(endd),