Processors: Remove / at end of odata.id
Matches mockups and other places in code.
Tested:
curl -k https://$bmc/redfish/v1/Systems/system/Processors
{
"@odata.id": "/redfish/v1/Systems/system/Processors",
"@odata.type": "#ProcessorCollection.ProcessorCollection",
"Members": [
{
"@odata.id": "/redfish/v1/Systems/system/Processors/cpu0"
},
...
Change-Id: I828e49013e09b9f40e189fd736103595ddb19a42
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/redfish-core/lib/processor.hpp b/redfish-core/lib/processor.hpp
index 4c9b1dc..79b5305 100644
--- a/redfish-core/lib/processor.hpp
+++ b/redfish-core/lib/processor.hpp
@@ -466,7 +466,7 @@
"#ProcessorCollection.ProcessorCollection";
res.jsonValue["Name"] = "Processor Collection";
- res.jsonValue["@odata.id"] = "/redfish/v1/Systems/system/Processors/";
+ res.jsonValue["@odata.id"] = "/redfish/v1/Systems/system/Processors";
auto asyncResp = std::make_shared<AsyncResp>(res);
collection_util::getCollectionMembers(