diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2018-12-07 00:52:46 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2019-01-22 19:46:27 +0300 |
commit | 8f1ac8e9248d464f8533e89bb7c249932ba9ce59 (patch) | |
tree | 46870edfc035dfd935a3a5c3014548383890212c /redfish-core/lib/chassis.hpp | |
parent | 39a4e39f7d85c3a54975e2cf36a636f8feefe7ae (diff) | |
download | bmcweb-8f1ac8e9248d464f8533e89bb7c249932ba9ce59.tar.xz |
Redfish: Chassis: Remove Inventory.Item.System
To determine /redfish/v1/Chassis/<ChassisID> don't look for
xyz.openbmc_project.Inventory.Item.System which is currently
implemented at /xyz/openbmc_project/inventory/system.
Inventory.Item.System (/xyz/openbmc_project/inventory/system)
is not a Chassis.
Inventory.Item.System is used to determine
/redfish/v1/Systems/<SystemID>.
https://gerrit.openbmc-project.xyz/#/c/openbmc/bmcweb/+/16528/
Change-Id: I6b7be374ea997d22598c0e7144a65428fba2fdbc
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'redfish-core/lib/chassis.hpp')
-rw-r--r-- | redfish-core/lib/chassis.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp index 0e1cf1b330..1c4b9e043d 100644 --- a/redfish-core/lib/chassis.hpp +++ b/redfish-core/lib/chassis.hpp @@ -61,12 +61,10 @@ class ChassisCollection : public Node void doGet(crow::Response &res, const crow::Request &req, const std::vector<std::string> ¶ms) override { - const std::array<const char *, 4> interfaces = { + const std::array<const char *, 3> interfaces = { "xyz.openbmc_project.Inventory.Item.Board", "xyz.openbmc_project.Inventory.Item.Chassis", - "xyz.openbmc_project.Inventory.Item.PowerSupply", - "xyz.openbmc_project.Inventory.Item.System", - }; + "xyz.openbmc_project.Inventory.Item.PowerSupply"}; res.jsonValue["@odata.type"] = "#ChassisCollection.ChassisCollection"; res.jsonValue["@odata.id"] = "/redfish/v1/Chassis"; res.jsonValue["@odata.context"] = |