Session: Add v1 to urlFromPieces
Commit eddfc43 forgot the v1 in these URLs.
The bump is failing the validator:
```
138 err.Session.Session errors in /redfish/v1/SessionService/Sessions
138 failMandatoryProp errors in /redfish/v1/SessionService/Sessions
1 failGet errors in /redfish/SessionService/Sessions/laEDBoxyVi
1 failGet errors in /redfish/SessionService/Sessions/NP9WrNsFwx
```
Note the missing v1 above
Tested: None.
Change-Id: I95c114f6e151b0a91080a47f3fcd7ae6d3a9668e
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/redfish-core/lib/redfish_sessions.hpp b/redfish-core/lib/redfish_sessions.hpp
index 9dcb873..7293ed7 100644
--- a/redfish-core/lib/redfish_sessions.hpp
+++ b/redfish-core/lib/redfish_sessions.hpp
@@ -32,7 +32,7 @@
res.jsonValue["Id"] = session.uniqueId;
res.jsonValue["UserName"] = session.username;
res.jsonValue["@odata.id"] = crow::utility::urlFromPieces(
- "redfish", "SessionService", "Sessions", session.uniqueId);
+ "redfish", "v1", "SessionService", "Sessions", session.uniqueId);
res.jsonValue["@odata.type"] = "#Session.v1_5_0.Session";
res.jsonValue["Name"] = "User Session";
res.jsonValue["Description"] = "Manager User Session";
@@ -128,7 +128,7 @@
{
nlohmann::json::object_t session;
session["@odata.id"] = crow::utility::urlFromPieces(
- "redfish", "SessionService", "Sessions", *uid);
+ "redfish", "v1", "SessionService", "Sessions", *uid);
ret.push_back(std::move(session));
}
return ret;