Skip to content

Commit 1b9c2a5

Browse files
committed
adopts status and state for power_control to naming schema
1 parent 0998e60 commit 1b9c2a5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

cr_module/classes/inventory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,8 @@ class PowerControl(InventoryItem):
335335
valid_attributes = {
336336
"id": str,
337337
"name": str,
338-
"status": str,
339-
"state": str,
338+
"health_status": str,
339+
"health_state": str,
340340
"chassi_ids": list,
341341
"power_capacity_watts": int,
342342
"power_allocated_watts": int,

cr_module/power.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ def get_single_chassi_power(redfish_url, chassi_id, power_data):
281281
pc_inventory = PowerControl(
282282
id=pc_id,
283283
name=name,
284-
status=status,
285-
state=state,
284+
health_status=status,
285+
health_state=state,
286286
power_allocated_watts=power_allocated_watts,
287287
power_capacity_watts=power_capacity_watts,
288288
power_available_watts=power_available_watts,

0 commit comments

Comments
 (0)