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:
Toshio Kuratomi 2015-09-24 08:56:20 -07:00
parent 9d47eabfa4
commit 03127dcfae
14 changed files with 18 additions and 14 deletions

View file

@ -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