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

Function update_component

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

Update _sys[component] from Redfish endpoints using the given spec. path can be a single segment ('Memory') or multiple ('PowerSubsystem/PowerSupplies').

(
    endpoints: EndpointMgr,
    collection: str,
    component: str,
    path: str,
    fields: List[str],
    _sys: Dict[str, Any],
    log: Any,
    attribute: Optional[str] = None,
)

Source from the content-addressed store, hash-verified

307
308
309def update_component(
310 endpoints: EndpointMgr,
311 collection: str,
312 component: str,
313 path: str,
314 fields: List[str],
315 _sys: Dict[str, Any],
316 log: Any,
317 attribute: Optional[str] = None,
318) -> None:
319 """Update _sys[component] from Redfish endpoints using the given spec.
320 path can be a single segment ('Memory') or multiple ('PowerSubsystem/PowerSupplies').
321 """
322 _sys[component] = get_component_data(
323 endpoints, collection, path, fields, log, attribute=attribute
324 )

Callers 1

updateMethod · 0.90

Calls 1

get_component_dataFunction · 0.85

Tested by

no test coverage detected