redfish: Fix the property name to get EncryptionStatus
Update the property name to get the EncryptionStatus correctly
Tested:
curl localhost/redfish/v1/.../emmc
{
"@odata.type": "#Drive.v1_7_0.Drive",
"EncryptionStatus": "Unlocked",
}
Change-Id: Ie7b84caba1d2566c372805330353e708ec1b3c3d
Signed-off-by: Konda Reddy Kachana <kkachana@google.com>
diff --git a/redfish-core/lib/storage.hpp b/redfish-core/lib/storage.hpp
index 9f3512f..3a38fce 100644
--- a/redfish-core/lib/storage.hpp
+++ b/redfish-core/lib/storage.hpp
@@ -585,12 +585,12 @@
if (encryptionStatus == nullptr || isLocked == nullptr ||
*encryptionStatus ==
- "xyz.openbmc_project.Drive.DriveEncryptionState.Unknown")
+ "xyz.openbmc_project.Inventory.Item.Drive.DriveEncryptionState.Unknown")
{
return;
}
if (*encryptionStatus !=
- "xyz.openbmc_project.Drive.DriveEncryptionState.Encrypted")
+ "xyz.openbmc_project.Inventory.Item.Drive.DriveEncryptionState.Encrypted")
{
//"The drive is not currently encrypted."
asyncResp->res.jsonValue["EncryptionStatus"] =