mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 06:30:19 -07:00
remove the stdin return value from connection plugin exec_command() methods
The value was useless -- unused by the callers and always hardcoded to the empty string.
This commit is contained in:
parent
9d47eabfa4
commit
03127dcfae
14 changed files with 18 additions and 14 deletions
|
@ -123,7 +123,11 @@ class ConnectionBase(with_metaclass(ABCMeta, object)):
|
|||
@ensure_connect
|
||||
@abstractmethod
|
||||
def exec_command(self, cmd, tmp_path, in_data=None, executable=None, sudoable=True):
|
||||
"""Run a command on the remote host"""
|
||||
"""Run a command on the remote host
|
||||
|
||||
:returns: a tuple of (return code, stdout, stderr) The return code is
|
||||
an int while stdout and stderr are both byte strings.
|
||||
"""
|
||||
pass
|
||||
|
||||
@ensure_connect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue