Convert VariantType to DbusVariantType
All bmcweb code is now converted to use
DbusVariantType to reduce the image size.
Its missed in one place where the code is under compiler
flag BMCWEB_ENABLE_REDFISH_PROVISIONING_FEATURE. This commit
convert missed types to DbusVariantType.
Tested:
After conversion, image builds fine with compiler
flag enabled. Also tested the PFR provisioned
dbus calls and it works fine.
Change-Id: Idcef956a18a6f822c44399ef867e26551dd8124f
Signed-off-by: AppaRao Puli <apparao.puli@intel.com>
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp
index f15c194..e98e1e2 100644
--- a/redfish-core/lib/systems.hpp
+++ b/redfish-core/lib/systems.hpp
@@ -1824,7 +1824,8 @@
BMCWEB_LOG_DEBUG << "Get OEM information.";
crow::connections::systemBus->async_method_call(
[aResp](const boost::system::error_code ec,
- const std::vector<std::pair<std::string, VariantType>>&
+ const std::vector<
+ std::pair<std::string, dbus::utility::DbusVariantType>>&
propertiesList) {
nlohmann::json& oemPFR =
aResp->res.jsonValue["Oem"]["OpenBmc"]["FirmwareProvisioning"];
@@ -1842,8 +1843,8 @@
const bool* provState = nullptr;
const bool* lockState = nullptr;
- for (const std::pair<std::string, VariantType>& property :
- propertiesList)
+ for (const std::pair<std::string, dbus::utility::DbusVariantType>&
+ property : propertiesList)
{
if (property.first == "UfmProvisioned")
{