summaryrefslogtreecommitdiffstats
path: root/writefrudata.cpp
diff options
context:
space:
mode:
authorDeepak Kodihalli <dkodihal@in.ibm.com>2017-02-11 01:59:32 -0600
committerDeepak Kodihalli <dkodihal@in.ibm.com>2017-02-14 13:00:19 -0600
commit89ededd0383bd60f5aadf3e73af489e79f138293 (patch)
tree24102f1401d39d8d06a244429f4a37dd153fea36 /writefrudata.cpp
parent5caa89504b33cda1feae1cac9af209a782a02693 (diff)
downloadipmi-fru-parser-89ededd0383bd60f5aadf3e73af489e79f138293.tar.gz
ipmi-fru-parser-89ededd0383bd60f5aadf3e73af489e79f138293.zip
Fix FRU area check
One of the IPMI FRU area checks deals with the old openbmc skeleton interfaces, which is no longer valid. Fixed that. Change-Id: Id406d4967d130136d4ac2a8efff94dac65d7ee0e Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'writefrudata.cpp')
-rw-r--r--writefrudata.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/writefrudata.cpp b/writefrudata.cpp
index 9a19e7d..635653f 100644
--- a/writefrudata.cpp
+++ b/writefrudata.cpp
@@ -554,10 +554,8 @@ int ipmi_update_inventory(fru_area_vec_t& area_vec)
///----------------------------------------------------
bool remove_invalid_area(const std::unique_ptr<ipmi_fru> &fru_area)
{
- // Filter the ones that do not have dbus reference.
- if((strlen((fru_area)->get_bus_name()) == 0) ||
- (strlen((fru_area)->get_obj_path()) == 0) ||
- (strlen((fru_area)->get_intf_name()) == 0))
+ // Filter the ones that are empty
+ if(!(fru_area->get_len()))
{
return true;
}
OpenPOWER on IntegriCloud