mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-26 00:16:49 +00:00
Strip trailing newlines from command module, which happens in some shell commands
This commit is contained in:
@@ -64,8 +64,8 @@ if err is None:
|
||||
err = ''
|
||||
|
||||
result = {
|
||||
"stdout" : out,
|
||||
"stderr" : err,
|
||||
"stdout" : out.strip(),
|
||||
"stderr" : err.strip(),
|
||||
"rc" : cmd.returncode,
|
||||
"start" : str(startd),
|
||||
"end" : str(endd),
|
||||
|
||||
Reference in New Issue
Block a user