Skip to content

Commit e1da476

Browse files
committed
fixes power supply and temp reporting for ASUS server #154
1 parent e4c361d commit e1da476

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

cr_module/power.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ def get_single_chassi_power(redfish_url, chassi_id, power_data):
6666
if last_power_output is None and grab(oem_data, "PowerOutputWatts") is not None:
6767
last_power_output = grab(oem_data, "PowerOutputWatts")
6868

69+
if plugin_object.rf.vendor == "Ami" and health is None and operational_status == "Present":
70+
health = "OK"
71+
6972
if bay is None:
7073
bay = ps_num
7174

@@ -115,6 +118,9 @@ def get_single_chassi_power(redfish_url, chassi_id, power_data):
115118
health = "OK"
116119
ps_absent += 1
117120

121+
if plugin_object.rf.vendor == "Ami" and health is None and operational_status == "Present":
122+
printed_status = operational_status
123+
118124
if health is None and operational_status == "Enabled":
119125
printed_status = operational_status
120126
health = "OK"

cr_module/temp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def get_single_chassi_temp(redfish_url, chassi_id, thermal_data):
8888

8989
plugin_object.inventory.add(temp_inventory)
9090

91-
if not state or state.lower() in ["absent", "disabled", "disable", "unavailableoffline"]:
91+
if not state or state.lower() in ["absent", "disabled", "disable", "unavailableoffline", "standbyoffline"]:
9292
continue
9393

9494
if status is None:

0 commit comments

Comments
 (0)