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

Method get_localized_store

src/pybind/mgr/mgr_module.py:2247–2253  ·  view source on GitHub ↗
(self, key: str, default: Optional[str] = None)

Source from the content-addressed store, hash-verified

2245
2246 @API.expose
2247 def get_localized_store(self, key: str, default: Optional[str] = None) -> Optional[str]:
2248 r = self._ceph_get_store(_get_localized_key(self.get_mgr_id(), key))
2249 if r is None:
2250 r = self._ceph_get_store(key)
2251 if r is None:
2252 r = default
2253 return r
2254
2255 @API.perm('w')
2256 @API.expose

Callers 2

_configureMethod · 0.45
get_access_infoMethod · 0.45

Calls 3

get_mgr_idMethod · 0.95
_get_localized_keyFunction · 0.85
_ceph_get_storeMethod · 0.80

Tested by

no test coverage detected