mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Only strip trailing newlines from output, preserving other space
This commit is contained in:
@@ -111,8 +111,8 @@ def main():
|
|||||||
|
|
||||||
module.exit_json(
|
module.exit_json(
|
||||||
cmd = args,
|
cmd = args,
|
||||||
stdout = out.strip(),
|
stdout = out.rstrip("\r\n"),
|
||||||
stderr = err.strip(),
|
stderr = err.rstrip("\r\n"),
|
||||||
rc = cmd.returncode,
|
rc = cmd.returncode,
|
||||||
start = str(startd),
|
start = str(startd),
|
||||||
end = str(endd),
|
end = str(endd),
|
||||||
|
|||||||
Reference in New Issue
Block a user