mirror of https://github.com/ceph/ceph-ansible.git
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
parent
c6e8f8fb11
commit
36e71f6532
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue