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,
)
| 307 | |
| 308 | |
| 309 | def 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 | ) |
no test coverage detected