diff options
author | Jiaqing Zhao <jiaqing.zhao@intel.com> | 2022-08-19 10:14:32 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-08-22 21:02:49 +0300 |
commit | 0d4befa8f0b8c3fecb96f6c8c7acd26439ad122e (patch) | |
tree | 84759632519e48610e023848f7e8c428994eb37c | |
parent | dd72e87b0588dcc2e2732cd47e5c9468a6386200 (diff) | |
download | bmcweb-0d4befa8f0b8c3fecb96f6c8c7acd26439ad122e.tar.xz |
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>
-rw-r--r-- | redfish-core/lib/systems.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp index 60bdbb96fa..fa2c8e77ac 100644 --- a/redfish-core/lib/systems.hpp +++ b/redfish-core/lib/systems.hpp @@ -1843,8 +1843,8 @@ inline void getProvisioningStatus(std::shared_ptr<bmcweb::AsyncResp> aResp) 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) { |