Close all open SSH connections to hosts.
(self)
| 225 | return self._execute_in_pool(self._delete_dir, **options) |
| 226 | |
| 227 | def close(self): |
| 228 | """ |
| 229 | Close all open SSH connections to hosts. |
| 230 | """ |
| 231 | |
| 232 | for host in self._hosts_client.keys(): |
| 233 | try: |
| 234 | self._hosts_client[host].close() |
| 235 | except: |
| 236 | LOG.exception("Failed shutting down SSH connection to host: %s", host) |
| 237 | |
| 238 | def _execute_in_pool(self, execute_method, **kwargs): |
| 239 | results = {} |