summaryrefslogtreecommitdiff
path: root/redfish-core/lib/chassis.hpp
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2020-02-15 01:35:59 +0300
committerGunnar Mills <gmills@us.ibm.com>2020-02-15 01:36:25 +0300
commit91cc52f96d2633efc1f7313c5ba7c2ef151bedde (patch)
treee68e946273964051772595d9f3ebf0fad6547d27 /redfish-core/lib/chassis.hpp
parent73155d0eb52a5f229f73b722c7d39ab07c9ca1f5 (diff)
downloadbmcweb-91cc52f96d2633efc1f7313c5ba7c2ef151bedde.tar.xz
chassis: Remove odata.context
Redfish made odata.context optional (1.6.0 of DSP0266) and has removed odata.context from example payloads in the specification (1.7.0 of DSP0266), removed it from the mockups, and Redfish recommended not using. Change-Id: I96e8908f07d27696aaf2e2ba33f49411b8e51ec5 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'redfish-core/lib/chassis.hpp')
-rw-r--r--redfish-core/lib/chassis.hpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp
index 59987fb070..69a48a7cb5 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -179,8 +179,6 @@ class ChassisCollection : public Node
{
res.jsonValue["@odata.type"] = "#ChassisCollection.ChassisCollection";
res.jsonValue["@odata.id"] = "/redfish/v1/Chassis";
- res.jsonValue["@odata.context"] =
- "/redfish/v1/$metadata#ChassisCollection.ChassisCollection";
res.jsonValue["Name"] = "Chassis Collection";
const std::array<const char *, 2> interfaces = {
@@ -322,8 +320,6 @@ class Chassis : public Node
"#Chassis.v1_10_0.Chassis";
asyncResp->res.jsonValue["@odata.id"] =
"/redfish/v1/Chassis/" + chassisId;
- asyncResp->res.jsonValue["@odata.context"] =
- "/redfish/v1/$metadata#Chassis.Chassis";
asyncResp->res.jsonValue["Name"] = "Chassis Collection";
asyncResp->res.jsonValue["ChassisType"] = "RackMount";
asyncResp->res.jsonValue["PCIeDevices"] = {