@@ -150,7 +150,7 @@ API: SSHClient and SSHAuth.
150150 .. Note :: Enter and exit ssh context manager is produced as well.
151151 .. versionadded :: 1.2.1
152152
153- .. py :method :: execute(command, verbose = False , timeout = 1 * 60 * 60 , * , log_mask_re = None , stdin = None , open_stdout = True , open_stderr = True , get_pty = False , width = 80 , height = 24 , ** kwargs)
153+ .. py :method :: execute(command, verbose = False , timeout = 1 * 60 * 60 , * , log_mask_re = None , stdin = None , open_stdout = True , log_stdout = True , open_stderr = True , log_stderr = True , get_pty = False , width = 80 , height = 24 , ** kwargs)
154154
155155 Execute command and wait for return code.
156156
@@ -166,8 +166,12 @@ API: SSHClient and SSHAuth.
166166 :type stdin: ``Union[bytes, str, bytearray, None] ``
167167 :param open_stdout: open STDOUT stream for read
168168 :type open_stdout: ``bool ``
169+ :param log_stdout: log STDOUT during read
170+ :type log_stdout: ``bool ``
169171 :param open_stderr: open STDERR stream for read
170172 :type open_stderr: ``bool ``
173+ :param log_stderr: log STDERR during read
174+ :type log_stderr: ``bool ``
171175 :param get_pty: Get PTY for connection
172176 :type get_pty: ``bool ``
173177 :param width: PTY width
@@ -179,7 +183,7 @@ API: SSHClient and SSHAuth.
179183
180184 .. versionchanged :: 1.2.0 default timeout 1 hour
181185
182- .. py :method :: __call__ (command, verbose = False , timeout = 1 * 60 * 60 , * , log_mask_re = None , stdin = None , open_stdout = True , open_stderr = True , get_pty = False , width = 80 , height = 24 , ** kwargs)
186+ .. py :method :: __call__ (command, verbose = False , timeout = 1 * 60 * 60 , * , log_mask_re = None , stdin = None , open_stdout = True , log_stdout = True , open_stderr = True , log_stderr = True , get_pty = False , width = 80 , height = 24 , ** kwargs)
183187
184188 Execute command and wait for return code.
185189
@@ -195,8 +199,12 @@ API: SSHClient and SSHAuth.
195199 :type stdin: ``Union[bytes, str, bytearray, None] ``
196200 :param open_stdout: open STDOUT stream for read
197201 :type open_stdout: ``bool ``
202+ :param log_stdout: log STDOUT during read
203+ :type log_stdout: ``bool ``
198204 :param open_stderr: open STDERR stream for read
199205 :type open_stderr: ``bool ``
206+ :param log_stderr: log STDERR during read
207+ :type log_stderr: ``bool ``
200208 :param get_pty: Get PTY for connection
201209 :type get_pty: ``bool ``
202210 :param width: PTY width
@@ -208,7 +216,7 @@ API: SSHClient and SSHAuth.
208216
209217 .. versionadded :: 3.3.0
210218
211- .. py :method :: check_call(command, verbose = False , timeout = 1 * 60 * 60 , error_info = None , expected = (0 ,), raise_on_err = True , * , log_mask_re = None , stdin = None , open_stdout = True , open_stderr = True , get_pty = False , width = 80 , height = 24 , exception_class = CalledProcessError, ** kwargs)
219+ .. py :method :: check_call(command, verbose = False , timeout = 1 * 60 * 60 , error_info = None , expected = (0 ,), raise_on_err = True , * , log_mask_re = None , stdin = None , open_stdout = True , log_stdout = True , open_stderr = True , log_stderr = True , get_pty = False , width = 80 , height = 24 , exception_class = CalledProcessError, ** kwargs)
212220
213221 Execute command and check for return code.
214222
@@ -230,8 +238,12 @@ API: SSHClient and SSHAuth.
230238 :type stdin: ``Union[bytes, str, bytearray, None] ``
231239 :param open_stdout: open STDOUT stream for read
232240 :type open_stdout: ``bool ``
241+ :param log_stdout: log STDOUT during read
242+ :type log_stdout: ``bool ``
233243 :param open_stderr: open STDERR stream for read
234244 :type open_stderr: ``bool ``
245+ :param log_stderr: log STDERR during read
246+ :type log_stderr: ``bool ``
235247 :param get_pty: Get PTY for connection
236248 :type get_pty: ``bool ``
237249 :param width: PTY width
@@ -248,7 +260,7 @@ API: SSHClient and SSHAuth.
248260 .. versionchanged :: 3.2.0 Exception class can be substituted
249261 .. versionchanged :: 3.4.0 Expected is not optional, defaults os dependent
250262
251- .. py :method :: check_stderr(command, verbose = False , timeout = 1 * 60 * 60 , error_info = None , raise_on_err = True , * , expected = (0 ,), log_mask_re = None , stdin = None , open_stdout = True , open_stderr = True , get_pty = False , width = 80 , height = 24 , exception_class = CalledProcessError, ** kwargs)
263+ .. py :method :: check_stderr(command, verbose = False , timeout = 1 * 60 * 60 , error_info = None , raise_on_err = True , * , expected = (0 ,), log_mask_re = None , stdin = None , open_stdout = True , log_stdout = True , open_stderr = True , log_stderr = True , get_pty = False , width = 80 , height = 24 , exception_class = CalledProcessError, ** kwargs)
252264
253265 Execute command expecting return code 0 and empty STDERR.
254266
@@ -270,8 +282,12 @@ API: SSHClient and SSHAuth.
270282 :type stdin: ``Union[bytes, str, bytearray, None] ``
271283 :param open_stdout: open STDOUT stream for read
272284 :type open_stdout: ``bool ``
285+ :param log_stdout: log STDOUT during read
286+ :type log_stdout: ``bool ``
273287 :param open_stderr: open STDERR stream for read
274288 :type open_stderr: ``bool ``
289+ :param log_stderr: log STDERR during read
290+ :type log_stderr: ``bool ``
275291 :param get_pty: Get PTY for connection
276292 :type get_pty: ``bool ``
277293 :param width: PTY width
@@ -316,7 +332,7 @@ API: SSHClient and SSHAuth.
316332
317333 .. versionadded :: 6.0.0
318334
319- .. py :method :: execute_through_host(hostname, command, * , auth = None , port = 22 , verbose = False , timeout = 1 * 60 * 60 , stdin = None , open_stdout = True , open_stderr = True , log_mask_re = " " , get_pty = False , width = 80 , height = 24 , ** kwargs)
335+ .. py :method :: execute_through_host(hostname, command, * , auth = None , port = 22 , verbose = False , timeout = 1 * 60 * 60 , stdin = None , open_stdout = True , log_stdout = True , open_stderr = True , log_stderr = True , log_mask_re = " " , get_pty = False , width = 80 , height = 24 , ** kwargs)
320336
321337 Execute command on remote host through currently connected host.
322338
@@ -336,8 +352,12 @@ API: SSHClient and SSHAuth.
336352 :type stdin: ``Union[bytes, str, bytearray, None] ``
337353 :param open_stdout: open STDOUT stream for read
338354 :type open_stdout: ``bool ``
355+ :param log_stdout: log STDOUT during read
356+ :type log_stdout: ``bool ``
339357 :param open_stderr: open STDERR stream for read
340358 :type open_stderr: ``bool ``
359+ :param log_stderr: log STDERR during read
360+ :type log_stderr: ``bool ``
341361 :param log_mask_re: regex lookup rule to mask command for logger. all MATCHED groups will be replaced by '<*masked *>'
342362 :type log_mask_re: ``Optional[str] ``
343363 :param get_pty: open PTY on target machine
0 commit comments