mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-02 14:29:10 -07:00
added more debug info for command results
This commit is contained in:
parent
aa55db69fe
commit
d35f615af8
1 changed files with 2 additions and 1 deletions
|
@ -506,7 +506,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
||||||
|
|
||||||
display.debug("executing the command %s through the connection" % cmd)
|
display.debug("executing the command %s through the connection" % cmd)
|
||||||
rc, stdout, stderr = self._connection.exec_command(cmd, in_data=in_data, sudoable=sudoable)
|
rc, stdout, stderr = self._connection.exec_command(cmd, in_data=in_data, sudoable=sudoable)
|
||||||
display.debug("command execution done")
|
display.debug("command execution done: rc=%s" % (rc))
|
||||||
|
|
||||||
# stdout and stderr may be either a file-like or a bytes object.
|
# stdout and stderr may be either a file-like or a bytes object.
|
||||||
# Convert either one to a text type
|
# Convert either one to a text type
|
||||||
|
@ -524,6 +524,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
||||||
else:
|
else:
|
||||||
err = stderr
|
err = stderr
|
||||||
|
|
||||||
|
display.debug("stdout=%s, stderr=%s" % (stdout, stderr))
|
||||||
display.debug("done with _low_level_execute_command() (%s)" % (cmd,))
|
display.debug("done with _low_level_execute_command() (%s)" % (cmd,))
|
||||||
if rc is None:
|
if rc is None:
|
||||||
rc = 0
|
rc = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue