Fix build failure with redfish-provisioning-feature enabled
Commit bc1d29d ("used sdbusplus::unpackPropertiesNoThrow part 3")
introduced a bug due to not passing the properties list to
unpackPropertiesNoThrow() in getProvisioningStatus(). This function
is only get compiled when redfish-provisioning-feature is enabled,
since it is not enabled in CI, it passed CI build.
Tested:
Local build with redfish-provisioning-feature enabled passed.
Change-Id: Ifcd19e0a8b830fe6d306919953aa01412c55043a
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp
index 60bdbb9..fa2c8e7 100644
--- a/redfish-core/lib/systems.hpp
+++ b/redfish-core/lib/systems.hpp
@@ -1843,8 +1843,8 @@
const bool* lockState = nullptr;
const bool success = sdbusplus::unpackPropertiesNoThrow(
- dbus_utils::UnpackErrorPrinter(), "UfmProvisioned", provState,
- "UfmLocked", lockState);
+ dbus_utils::UnpackErrorPrinter(), propertiesList, "UfmProvisioned",
+ provState, "UfmLocked", lockState);
if (!success)
{