summaryrefslogtreecommitdiff
path: root/redfish-core/lib
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2018-07-31 02:00:49 +0300
committerJames Feist <james.feist@linux.intel.com>2018-08-06 19:23:26 +0300
commit530bc74d102e169ac7acfc8d264b8f6d3db7ae0c (patch)
tree135f3feb1c81847bc237ccbb32c66fd553f8163a /redfish-core/lib
parentf0d73c2c400661857f5a9c70c737a84a873be4bd (diff)
downloadbmcweb-530bc74d102e169ac7acfc8d264b8f6d3db7ae0c.tar.xz
Fix crash issue with Managers schema
The bmc was initing two copies of the managers route, which was causing the route handler to crash at startup. Remove the extra one. Jul 26 20:39:50 wolfpass systemd[1]: Started Start bmcweb server. Jul 26 20:39:50 wolfpass bmcweb[3279]: terminate called after throwing an instance of 'std::runtime_error' Jul 26 20:39:50 wolfpass bmcweb[3279]: what(): handler already exists for /redfish/v1/Managers/openbmc Change-Id: Id2c469b5e82bddc68987f89f0eff23072b16854c Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'redfish-core/lib')
-rw-r--r--redfish-core/lib/managers.hpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/redfish-core/lib/managers.hpp b/redfish-core/lib/managers.hpp
index daee36a743..3071518154 100644
--- a/redfish-core/lib/managers.hpp
+++ b/redfish-core/lib/managers.hpp
@@ -78,8 +78,7 @@ class Manager : public Node {
class ManagerCollection : public Node {
public:
- ManagerCollection(CrowApp& app)
- : Node(app, "/redfish/v1/Managers/"), memberManager(app) {
+ ManagerCollection(CrowApp& app) : Node(app, "/redfish/v1/Managers/") {
Node::json["@odata.id"] = "/redfish/v1/Managers";
Node::json["@odata.type"] = "#ManagerCollection.ManagerCollection";
Node::json["@odata.context"] =
@@ -111,8 +110,6 @@ class ManagerCollection : public Node {
{{"@odata.id", "/redfish/v1/Managers/openbmc"}}};
res.end();
}
-
- Manager memberManager;
};
} // namespace redfish