mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 01:03:09 +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(
|
||||
cmd = args,
|
||||
stdout = out.strip(),
|
||||
stderr = err.strip(),
|
||||
stdout = out.rstrip("\r\n"),
|
||||
stderr = err.rstrip("\r\n"),
|
||||
rc = cmd.returncode,
|
||||
start = str(startd),
|
||||
end = str(endd),
|
||||
|
||||
Reference in New Issue
Block a user