MCPcopy Create free account
hub / github.com/ceph/ceph / __init__

Method __init__

src/ceph-node-proxy/ceph_node_proxy/redfish.py:25–32  ·  view source on GitHub ↗
(
        self, client: RedFishClient, prefix: str = RedFishClient.PREFIX
    )

Source from the content-addressed store, hash-verified

23 NAME: str = "EndpointMgr"
24
25 def __init__(
26 self, client: RedFishClient, prefix: str = RedFishClient.PREFIX
27 ) -> None:
28 self.log = get_logger(f"{__name__}:{EndpointMgr.NAME}")
29 self.prefix: str = prefix
30 self.client: RedFishClient = client
31 self._endpoints: Dict[str, "Endpoint"] = {}
32 self._session_url: str = ""
33
34 def __getitem__(self, index: str) -> Endpoint:
35 if index not in self._endpoints:

Callers

nothing calls this directly

Calls 1

get_loggerFunction · 0.90

Tested by

no test coverage detected