1 from robot.utils
import ConnectionCache
6 ConnectionCache.__init__(self, no_current_msg=
'No open connection.')
12 return self._connections
21 connection = self.
currentcurrent
23 if connection.config.alias
is not None:
25 idx = connection.config.index - 1
29 open_connections = (conn
for conn
in self._connections
if conn)
30 for connection
in open_connections:
36 connection = super(SSHConnectionCache, self).
get_connection(alias_or_index)
38 raise RuntimeError(
"Non-existing index or alias '%s'." % alias_or_index)
def get_connection(self, alias_or_index=None)