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

Function _resolve_path

src/ceph-node-proxy/ceph_node_proxy/redfish.py:268–274  ·  view source on GitHub ↗

Resolve an endpoint by traversing path segments (example: 'PowerSubsystem/PowerSupplies').

(endpoint: Endpoint, path: str)

Source from the content-addressed store, hash-verified

266
267
268def _resolve_path(endpoint: Endpoint, path: str) -> Endpoint:
269 """Resolve an endpoint by traversing path segments (example: 'PowerSubsystem/PowerSupplies')."""
270 parts = [p for p in path.split("/") if p]
271 current = endpoint
272 for part in parts:
273 current = current[part]
274 return current
275
276
277def get_component_data(

Callers 1

get_component_dataFunction · 0.85

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected