diff --git a/redfish_utilities/power_equipment.py b/redfish_utilities/power_equipment.py index c4d1e66..a99ddc3 100644 --- a/redfish_utilities/power_equipment.py +++ b/redfish_utilities/power_equipment.py @@ -263,11 +263,11 @@ def print_power_equipment_summary(power_equipment_summary): for equipment in power_equipment_summary[equipment_type]: print( summary_line_format.format( - equipment["Id"], - equipment["Model"], - equipment["SerialNumber"], - equipment["State"], - equipment["Health"], + equipment["Id"] if equipment["Id"] else "", + equipment["Model"] if equipment["Model"] else "", + equipment["SerialNumber"] if equipment["SerialNumber"] else "", + equipment["State"] if equipment["State"] else "", + equipment["Health"] if equipment["Health"] else "", ) ) print("") diff --git a/redfish_utilities/thermal_equipment.py b/redfish_utilities/thermal_equipment.py index 664334d..4efb64f 100644 --- a/redfish_utilities/thermal_equipment.py +++ b/redfish_utilities/thermal_equipment.py @@ -162,11 +162,11 @@ def print_thermal_equipment_summary(thermal_equipment_summary): for equipment in thermal_equipment_summary[equipment_type]: print( summary_line_format.format( - equipment["Id"], - equipment["Model"], - equipment["SerialNumber"], - equipment["State"], - equipment["Health"], + equipment["Id"] if equipment["Id"] else "", + equipment["Model"] if equipment["Model"] else "", + equipment["SerialNumber"] if equipment["SerialNumber"] else "", + equipment["State"] if equipment["State"] else "", + equipment["Health"] if equipment["Health"] else "", ) ) print("")