示例#1
0
文件: pool.py 项目: windskyer/k_nova
 def new_connection(self):
     """
         Overriding the new connection method
         to return the pool specific connection.
     """
     ssh = SSHConnection(
         self._host, self._port, self._user_name, self._password, self._key_file, self._timeout, self._known_hosts
     )
     ssh.open_connection()
     ssh.set_keep_alive(20)
     return ssh