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

Method __init__

src/ceph-node-proxy/ceph_node_proxy/redfish_client.py:13–24  ·  view source on GitHub ↗
(
        self, host: str = "", port: str = "443", username: str = "", password: str = ""
    )

Source from the content-addressed store, hash-verified

11 PREFIX = "/redfish/v1/"
12
13 def __init__(
14 self, host: str = "", port: str = "443", username: str = "", password: str = ""
15 ):
16 super().__init__(host, username, password)
17 self.log = get_logger(__name__)
18 self.log.info(f"Initializing redfish client {__name__}")
19 self.host: str = host
20 self.port: str = port
21 self.url: str = f"https://{self.host}:{self.port}"
22 self.token: str = ""
23 self.location: str = ""
24 self.session_service: str = ""
25
26 def sessionservice_discover(self) -> None:
27 _error_msg: str = "Can't discover SessionService url"

Callers

nothing calls this directly

Calls 2

get_loggerFunction · 0.90
infoMethod · 0.45

Tested by

no test coverage detected