Skip to content

Commit 0998e60

Browse files
committed
add chassis id to power_controll
1 parent 8839b07 commit 0998e60

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

cr_module/classes/inventory.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ class PowerControl(InventoryItem):
337337
"name": str,
338338
"status": str,
339339
"state": str,
340+
"chassi_ids": list,
340341
"power_capacity_watts": int,
341342
"power_allocated_watts": int,
342343
"power_available_watts": int,

cr_module/power.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ def get_single_chassi_power(redfish_url, chassi_id, power_data):
287287
power_capacity_watts=power_capacity_watts,
288288
power_available_watts=power_available_watts,
289289
power_consumed_watts=reading,
290-
power_requested_watts=power_requested_watts
290+
power_requested_watts=power_requested_watts,
291+
chassi_ids=chassi_id
291292
)
292293

293294
if plugin_object.cli_args.verbose:

0 commit comments

Comments
 (0)