diff --git a/redfish-core/lib/storage.hpp b/redfish-core/lib/storage.hpp index 7ddc77a2d8..5a6a760a47 100644 --- a/redfish-core/lib/storage.hpp +++ b/redfish-core/lib/storage.hpp @@ -311,11 +311,12 @@ inline void getDriveAsset(const std::shared_ptr& asyncResp, const std::string* serialNumber = nullptr; const std::string* manufacturer = nullptr; const std::string* model = nullptr; + const std::string* revision = nullptr; const bool success = sdbusplus::unpackPropertiesNoThrow( dbus_utils::UnpackErrorPrinter(), propertiesList, "PartNumber", partNumber, "SerialNumber", serialNumber, "Manufacturer", - manufacturer, "Model", model); + manufacturer, "Model", model, "Revision", revision); if (!success) { @@ -342,6 +343,11 @@ inline void getDriveAsset(const std::shared_ptr& asyncResp, { asyncResp->res.jsonValue["Model"] = *model; } + + if (revision != nullptr) + { + asyncResp->res.jsonValue["Revision"] = *revision; + } }); }