FruUtils: Add back the else in formatFRU.
There is no "else" in this if-statement and that causes the name very
wrong. The dbus path always be "/xyz/openbmc_project/FruDevice/UNKNOWN",
and the properties of the dbus-object are FRU_CUSTOM_FIELD_NAME which is
"INFO_AM".
Tested:
After applying this patch, information of all FRU becomes normal.
Signed-off-by: Scron-Chang <Scron.Chang@quantatw.com>
Change-Id: I1e9ee88bbd1d02a1b96cf52a02250efb407cec58
diff --git a/src/FruUtils.cpp b/src/FruUtils.cpp
index 9e0170f..beeb148 100644
--- a/src/FruUtils.cpp
+++ b/src/FruUtils.cpp
@@ -404,6 +404,7 @@
name = std::string(getFruAreaName(area)) + "_" +
fruAreaFieldNames->at(fieldIndex);
}
+ else
{
name =
std::string(getFruAreaName(area)) + "_" +