@@ -110,7 +110,7 @@ Creation from scratch:
110
110
password = ' password' , # str | None
111
111
key = None , # type: paramiko . PKey | None
112
112
keys = None , # type: Iterable [ paramiko . PKey ] | None
113
- key_filename = None , # type: List [ str ] | None
113
+ key_filename = None , # type: list [ str ] | None
114
114
passphrase = None , # str | None
115
115
)
116
116
@@ -240,9 +240,10 @@ Execution result object has a set of useful properties:
240
240
241
241
* `cmd ` - Command
242
242
* `exit_code ` - Command return code. If possible to decode using enumerators for Linux -> it used.
243
+ * `ok ` -> `bool `. Command return code is 0 (EX_OK).
243
244
* `stdin ` -> `str `. Text representation of stdin.
244
- * `stdout ` -> `Tuple [bytes] `. Raw stdout output.
245
- * `stderr ` -> `Tuple [bytes] `. Raw stderr output.
245
+ * `stdout ` -> `tuple [bytes] `. Raw stdout output.
246
+ * `stderr ` -> `tuple [bytes] `. Raw stderr output.
246
247
* `stdout_bin ` -> `bytearray `. Binary stdout output.
247
248
* `stderr_bin ` -> `bytearray `. Binary stderr output.
248
249
* `stdout_str ` -> `str `. Text representation of output.
@@ -273,7 +274,7 @@ Possible to call commands in parallel on multiple hosts if it's not produce huge
273
274
274
275
.. code-block :: python
275
276
276
- results: Dict[Tuple [str , int ], ExecResult] = SSHClient.execute_together(
277
+ results: dict[tuple [str , int ], ExecResult] = SSHClient.execute_together(
277
278
remotes, # type: Iterable [ SSHClient ]
278
279
command, # type: str | Iterable [ str ]
279
280
timeout = 1 * 60 * 60 , # type: type : int | float | None
@@ -286,7 +287,7 @@ Possible to call commands in parallel on multiple hosts if it's not produce huge
286
287
log_mask_re = None , # str | None
287
288
exception_class = ParallelCallProcessError # type[ParallelCallProcessError]
288
289
)
289
- results # type: dict [ Tuple [ str , int ], exec_result . ExecResult ]
290
+ results # type: dict [ tuple [ str , int ], exec_result . ExecResult ]
290
291
291
292
Results is a dict with keys = (hostname, port) and and results in values.
292
293
By default execute_together raises exception if unexpected return code on any remote.
0 commit comments