mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
Don't display physical FRU devices; FRU API only works for logical devices
This commit is contained in:
parent
7849cc978f
commit
f63189780f
@ -1295,7 +1295,7 @@ ipmi_fru_print_all(struct ipmi_intf * intf)
|
|||||||
|
|
||||||
fru = (struct sdr_record_fru_locator *)
|
fru = (struct sdr_record_fru_locator *)
|
||||||
ipmi_sdr_get_record(intf, header, itr);
|
ipmi_sdr_get_record(intf, header, itr);
|
||||||
if (fru == NULL)
|
if (fru == NULL || !fru->logical)
|
||||||
continue;
|
continue;
|
||||||
rc = ipmi_fru_print(intf, fru);
|
rc = ipmi_fru_print(intf, fru);
|
||||||
free(fru);
|
free(fru);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user