Redfish: Fix @odata.id formatting issue
On a recent CL the odata.id for drives was being formatted incorrectly.
This change corrects the formatting issue.
Tested:
This change was not tested, and it's correctness should be
self-evident.
Change-Id: Ie530c6d8c4203ad0f733198d5d7ca52cf2f40a52
Signed-off-by: John Edward Broadbent <jebr@google.com>
diff --git a/redfish-core/lib/storage.hpp b/redfish-core/lib/storage.hpp
index e17659d..53763b8 100644
--- a/redfish-core/lib/storage.hpp
+++ b/redfish-core/lib/storage.hpp
@@ -636,8 +636,8 @@
asyncResp->res.jsonValue["@odata.type"] =
"#DriveCollection.DriveCollection";
asyncResp->res.jsonValue["@odata.id"] =
- crow::utility::urlFromPieces("redfish", "v1",
- "Chassis" + chassisId + "Drives");
+ crow::utility::urlFromPieces("redfish", "v1", "Chassis",
+ chassisId, "Drives");
asyncResp->res.jsonValue["Name"] = "Drive Collection";
// Association lambda