mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 09:17:08 +00:00
Merge pull request #394 from zhouzi88/swl-4557
do not display PSU Model if it does not exist
This commit is contained in:
@@ -196,7 +196,7 @@ onlp_psu_show(onlp_oid_t id, aim_pvs_t* pvs, uint32_t flags)
|
||||
}
|
||||
else {
|
||||
iof_iprintf(&iof, "Status: Running");
|
||||
iof_iprintf(&iof, "Model: %s", pi.model[0] ? pi.model : "Unknown");
|
||||
if(pi.model[0]) iof_iprintf(&iof, "Model: %s", pi.model);
|
||||
if(pi.serial[0]) iof_iprintf(&iof, "SN: %s", pi.serial);
|
||||
if(pi.caps & ONLP_PSU_CAPS_AC) {
|
||||
iof_iprintf(&iof, "Type: AC");
|
||||
|
||||
Reference in New Issue
Block a user