diff options
author | Ed Tanous <ed.tanous@intel.com> | 2019-02-08 22:13:29 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2019-02-13 20:33:14 +0300 |
commit | 0f26153344a831f2b7eaf4775d56fa8a019e5c63 (patch) | |
tree | bd0c11e572c8d54f92d29c8a02b7c890bf527614 /redfish-core/lib/redfish_sessions.hpp | |
parent | abf2add6a35aaf42ba60c4ae955a4d8925b13b19 (diff) | |
download | bmcweb-0f26153344a831f2b7eaf4775d56fa8a019e5c63.tar.xz |
bmcweb: Fix some errors in Redfish Sessions
Two errors were identified in the Redfish sessions implementation.
1. All user "roles" return a description containing Adminstrator,
instead of containing the name of the role.
2. The SessionService implementation was missing the link to sessions
collection.
These are resolved in this commit.
Tested By:
Ran service validator, no errors.
Change-Id: Ib48ab1756d78724b4bab124c8cf135c8a61d94a6
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'redfish-core/lib/redfish_sessions.hpp')
-rw-r--r-- | redfish-core/lib/redfish_sessions.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/redfish-core/lib/redfish_sessions.hpp b/redfish-core/lib/redfish_sessions.hpp index addb28701b..59805a0c46 100644 --- a/redfish-core/lib/redfish_sessions.hpp +++ b/redfish-core/lib/redfish_sessions.hpp @@ -235,6 +235,9 @@ class SessionService : public Node .getTimeoutInSeconds(); res.jsonValue["ServiceEnabled"] = true; + res.jsonValue["Sessions"] = { + {"@odata.id", "/redfish/v1/SessionService/Sessions"}}; + res.end(); } }; |