File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/openstack_mcp_server/tools Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,18 @@ class OpenStackConnectionManager:
1010
1111 _connection : connection .Connection | None = None
1212
13- # TODO: Try/Catch disconnection by token expired case
1413 @classmethod
1514 def get_connection (cls ) -> connection .Connection :
16- """OpenStack Connection) """
15+ """OpenStack Connection"""
1716 if cls ._connection is None :
1817 openstack .enable_logging (debug = config .MCP_DEBUG_MODE )
1918 cls ._connection = openstack .connect (cloud = config .MCP_CLOUD_NAME )
2019 return cls ._connection
2120
22- # TODO: Close connection
21+
22+ _openstack_connection_manager = OpenStackConnectionManager ()
2323
2424
2525def get_openstack_conn ():
2626 """Get OpenStack Connection"""
27- return OpenStackConnectionManager .get_connection ()
27+ return _openstack_connection_manager .get_connection ()
You can’t perform that action at this time.
0 commit comments