[PATCH skeleton] skeleton: Add new API SystemManager::getFRUObject()

OpenBMC Patches openbmc-patches at stwcx.xyz
Mon Apr 11 19:10:52 AEST 2016


ipmi-fru-parser uses getObjectFromId('FRU_STR', fru_area_name) to
ask for the dbus object path of the 'fru_area_name'. The returned
value is also used to check the 'present' status of FRU. Sometimes
the 'fru_area_name' does not defined in Skeleton's ID_LOOKUP table.
system_manager will report a "ERROR: lookup not found" error message.

This patch added an API similiar with getObjectFromId().
It does not report error when the 'fru_area_name' is not defined.
It can be used by ipmi-fru-parser to replace getObjectFromId().

Also the orignal "ERROR" message is changed to "WARNING".

Signed-off-by: Yi Li <adamliyi at msn.com>

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/openbmc/skeleton/60)
<!-- Reviewable:end -->


https://github.com/openbmc/skeleton/pull/60

Yi Li (1):
  skeleton: Add new API SystemManager::getFRUObject()

 bin/system_manager.py | 40 +++++++++++++++++++++++++++-------------
 1 file changed, 27 insertions(+), 13 deletions(-)

-- 
2.7.1




More information about the openbmc mailing list