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

Method close

st2common/st2common/runners/paramiko_ssh.py:503–519  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

501 return [stdout, stderr, status]
502
503 def close(self):
504 if self.socket:
505 self.socket.close()
506
507 if self.client:
508 self.client.close()
509
510 if self.sftp_client:
511 self.sftp_client.close()
512
513 if self.bastion_socket:
514 self.bastion_socket.close()
515
516 if self.bastion_client:
517 self.bastion_client.close()
518
519 return True
520
521 @property
522 def sftp(self):

Callers 10

test_socket_closedMethod · 0.95
_remove_tempfileMethod · 0.45
find_callerFunction · 0.45
runMethod · 0.45
post_runMethod · 0.45
runMethod · 0.45
reopen_log_filesFunction · 0.45

Calls

no outgoing calls