diff options
author | Shawn McCarney <shawnmm@us.ibm.com> | 2019-05-03 13:20:24 -0500 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2019-05-09 17:02:40 +0000 |
commit | 26f0389959179b37bae5410dfd5a84831fbdaee6 (patch) | |
tree | 113dda0097e517c902aea8219176189627c3693e /redfish-core/lib/thermal.hpp | |
parent | 49c53ac9b88fbf71f55076121a1605a760fa0096 (diff) | |
download | bmcweb-26f0389959179b37bae5410dfd5a84831fbdaee6.tar.gz bmcweb-26f0389959179b37bae5410dfd5a84831fbdaee6.zip |
Redfish: Remove BMCWEB_ENABLE_REDFISH_ONE_CHASSIS
Removed the BMCWEB_ENABLE_REDFISH_ONE_CHASSIS #define. The new support
for finding chassis sensors via associations is now used on all systems.
Test Plan:
https://gist.github.com/smccarney/f5b4783d8cf41a486ceff9b941b1ba9a
Tested: Verified the Chassis, Power, and Thermal output was valid on a
Witherspoon system. Verified sensor associations on Witherspoon
work with bmcweb implementation. Ran Redfish Service Validator.
Change-Id: I975f79da2c9de63e4ddd155d39ea872ca9fbffa9
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Diffstat (limited to 'redfish-core/lib/thermal.hpp')
-rw-r--r-- | redfish-core/lib/thermal.hpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/redfish-core/lib/thermal.hpp b/redfish-core/lib/thermal.hpp index 7c84039..384fe1a 100644 --- a/redfish-core/lib/thermal.hpp +++ b/redfish-core/lib/thermal.hpp @@ -51,16 +51,6 @@ class Thermal : public Node return; } const std::string& chassisName = params[0]; -#ifdef BMCWEB_ENABLE_REDFISH_ONE_CHASSIS - // In a one chassis system the only supported name is "chassis" - if (chassisName != "chassis") - { - messages::resourceNotFound(res, "#Chassis.v1_4_0.Chassis", - chassisName); - res.end(); - return; - } -#endif auto sensorAsyncResp = std::make_shared<SensorsAsyncResp>( res, chassisName, typeList, "Thermal"); |