MCPcopy Create free account
hub / github.com/StackStorm/st2 / close

Method close

st2common/st2common/runners/parallel_ssh.py:227–236  ·  view source on GitHub ↗

Close all open SSH connections to hosts.

(self)

Source from the content-addressed store, hash-verified

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 = {}

Callers

nothing calls this directly

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected