ipmi_fru_info_area: Fix Model Number name
The FRU parser has always used the string `Model Number` for the IPMI
FRU property name. The change 45e93cbae0aa0d0f5385d40f5685b23e18f95351
broke reading this value since it stopped using the DBus property name
and switched to the FRU parser name.
Change-Id: Ie83f1a576680b7254f7858daacdc8803049b66f0
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/ipmi_fru_info_area.cpp b/ipmi_fru_info_area.cpp
index 4093ae5..84af95d 100644
--- a/ipmi_fru_info_area.cpp
+++ b/ipmi_fru_info_area.cpp
@@ -19,7 +19,7 @@
static constexpr auto serialNumber = "Serial Number";
static constexpr auto manufacturer = "Manufacturer";
static constexpr auto buildDate = "Mfg Date";
-static constexpr auto model = "Model";
+static constexpr auto modelNumber = "Model Number";
static constexpr auto prettyName = "Name";
static constexpr auto version = "Version";
static constexpr auto type = "Type";
@@ -305,7 +305,7 @@
appendChassisType(propMap, fruAreaData);
// Chasiss part number, in config.yaml it is configured as model
- appendData(model, propMap, fruAreaData);
+ appendData(modelNumber, propMap, fruAreaData);
// Board serial number
appendData(serialNumber, propMap, fruAreaData);
@@ -382,7 +382,7 @@
appendData(prettyName, propMap, fruAreaData);
// Product part/model number
- appendData(model, propMap, fruAreaData);
+ appendData(modelNumber, propMap, fruAreaData);
// Product version
appendData(version, propMap, fruAreaData);