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

Method get_mgr_ip

src/pybind/mgr/mgr_module.py:2094–2101  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2092
2093 @API.expose
2094 def get_mgr_ip(self) -> str:
2095 if not self._mgr_ips:
2096 ips = self.get("mgr_ips").get('ips', [])
2097 if not ips:
2098 return socket.gethostname()
2099 self._mgr_ips = ips[0]
2100 assert self._mgr_ips is not None
2101 return self._mgr_ips
2102
2103 @API.expose
2104 def get_hostname(self) -> str:

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected