(self)
| 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: |