summaryrefslogtreecommitdiff
path: root/redfish-core
diff options
context:
space:
mode:
authorKonda Reddy Kachana <kkachana@google.com>2024-01-09 05:04:37 +0300
committerEd Tanous <ed@tanous.net>2024-01-15 21:25:33 +0300
commita684c226d60889f862740260a654ea7b3fafc7b0 (patch)
treec7e9e07ab2287adeb7228a43ae5fe205582ba9b2 /redfish-core
parent8ece0e457ee994e54c23ee7393fbce831d81a954 (diff)
downloadbmcweb-a684c226d60889f862740260a654ea7b3fafc7b0.tar.xz
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>
Diffstat (limited to 'redfish-core')
-rw-r--r--redfish-core/lib/storage.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/storage.hpp b/redfish-core/lib/storage.hpp
index 9f3512f427..3a38fce550 100644
--- a/redfish-core/lib/storage.hpp
+++ b/redfish-core/lib/storage.hpp
@@ -585,12 +585,12 @@ inline void
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"] =