|
35 | 35 |
|
36 | 36 |
|
37 | 37 | class ParallelSSHClient(object): |
38 | | - """Uses :mod:`pssh.SSHClient`, performs tasks over SSH on multiple hosts in \ |
| 38 | + """Uses :mod:`pssh.ssh_client.SSHClient`, performs tasks over SSH on multiple hosts in \ |
39 | 39 | parallel. |
40 | 40 |
|
41 | 41 | Connections to hosts are established in parallel when ``run_command`` is called, |
@@ -169,13 +169,15 @@ def run_command(self, *args, **kwargs): |
169 | 169 | :type sudo: bool |
170 | 170 | :param kwargs: Keyword arguments for command |
171 | 171 | :type kwargs: dict |
172 | | -
|
173 | | - :rtype: Dictionary with host as key as per :mod:`ParallelSSH.get_output` |
| 172 | + :param stop_on_errors: (Optional) Raise exception on errors running command. \ |
| 173 | + Defaults to True. |
| 174 | + :type stop_on_errors: bool |
| 175 | + :rtype: Dictionary with host as key as per :mod:`pssh.pssh_client.ParallelSSH.get_output` |
174 | 176 | |
175 | | - :raises: :mod:`pssh.AuthenticationException` on authentication error |
176 | | - :raises: :mod:`pssh.UnknownHostException` on DNS resolution error |
177 | | - :raises: :mod:`pssh.ConnectionErrorException` on error connecting |
178 | | - :raises: :mod:`pssh.SSHException` on other undefined SSH errors |
| 177 | + :raises: :mod:`pssh.exceptions.AuthenticationException` on authentication error |
| 178 | + :raises: :mod:`pssh.exceptions.UnknownHostException` on DNS resolution error |
| 179 | + :raises: :mod:`pssh.exceptions.ConnectionErrorException` on error connecting |
| 180 | + :raises: :mod:`pssh.exceptions.SSHException` on other undefined SSH errors |
179 | 181 |
|
180 | 182 | **Example Usage** |
181 | 183 | |
@@ -234,7 +236,7 @@ def run_command(self, *args, **kwargs): |
234 | 236 | def exec_command(self, *args, **kwargs): |
235 | 237 | """Run command on all hosts in parallel, honoring `self.pool_size` |
236 | 238 | |
237 | | - **Deprecated by** :mod:`pssh.ParallelSSHClient.run_command` |
| 239 | + **Deprecated by** :mod:`pssh.pssh_client.ParallelSSHClient.run_command` |
238 | 240 | |
239 | 241 | :param args: Position arguments for command |
240 | 242 | :type args: tuple |
@@ -265,11 +267,11 @@ def get_output(self, cmd, output): |
265 | 267 | |
266 | 268 | :param cmd: Command to get output from |
267 | 269 | :type cmd: :mod:`gevent.Greenlet` |
268 | | - :param output: Dictionary containing output to be updated with output |
| 270 | + :param output: Dictionary containing output to be updated with output \ |
269 | 271 | from cmd |
270 | 272 | :type output: dict |
271 | 273 | :rtype: None |
272 | | -
|
| 274 | + |
273 | 275 | `output` parameter is modified in-place and has the following structure |
274 | 276 | |
275 | 277 | :: |
|
0 commit comments