diff options
author | James Feist <james.feist@linux.intel.com> | 2019-10-31 02:38:16 +0300 |
---|---|---|
committer | James Feist <james.feist@linux.intel.com> | 2019-11-01 19:25:07 +0300 |
commit | be13cecef3c072f16b6559a52722ff9c6385b77b (patch) | |
tree | 03bbe00ef6781b557ee3a91ce219fdd4d446c21d /redfish-core/lib/storage.hpp | |
parent | c78d791eb1fa9d12e987e7b1ad885ada92d0757a (diff) | |
download | bmcweb-be13cecef3c072f16b6559a52722ff9c6385b77b.tar.xz |
storage: s/Drive/Drives
The link was wrong, fix it.
Tested:
Navigated to a drive using new path, and it worked.
Change-Id: Ie008efef23f4a7a17bfc0c3f74a4deac87e0d94c
Signed-off-by: James Feist <james.feist@linux.intel.com>
Diffstat (limited to 'redfish-core/lib/storage.hpp')
-rw-r--r-- | redfish-core/lib/storage.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/redfish-core/lib/storage.hpp b/redfish-core/lib/storage.hpp index 5554839c37..611c7e77e9 100644 --- a/redfish-core/lib/storage.hpp +++ b/redfish-core/lib/storage.hpp @@ -101,7 +101,7 @@ class Storage : public Node storageArray.push_back( {{"@odata.id", - "/redfish/v1/Systems/system/Storage/1/Drive/" + + "/redfish/v1/Systems/system/Storage/1/Drives/" + objpath.substr(lastPos + 1)}}); } @@ -121,7 +121,7 @@ class Drive : public Node { public: Drive(CrowApp &app) : - Node(app, "/redfish/v1/Systems/system/Storage/1/Drive/<str>/", + Node(app, "/redfish/v1/Systems/system/Storage/1/Drives/<str>/", std::string()) { entityPrivileges = { @@ -177,7 +177,7 @@ class Drive : public Node asyncResp->res.jsonValue["@odata.context"] = "/redfish/v1/$metadata#Drive.Drive"; asyncResp->res.jsonValue["@odata.id"] = - "/redfish/v1/Systems/system/Storage/1/Drive/" + driveId; + "/redfish/v1/Systems/system/Storage/1/Drives/" + driveId; if (connectionNames.size() != 1) { |