From 39eb7ba862956791f5a1b28a20f09e84cb53d21d Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Thu, 12 Jan 2017 15:07:07 -0800 Subject: [PATCH] [Plugins] Allow ElasticSearch config --- src/plugins/plugins.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/plugins/plugins.js b/src/plugins/plugins.js index 11331ae78c..fc4c83e167 100644 --- a/src/plugins/plugins.js +++ b/src/plugins/plugins.js @@ -41,12 +41,28 @@ define([ plugins.CouchDB = function (url) { return function (openmct) { + openmct.legacyRegistry.enable(bundleMap.couchDB); }; }; plugins.ElasticSearch = function (url) { return function (openmct) { + var bundleName = "config/elastic"; + + openmct.legacyRegistry.register(bundleName, { + "extensions": { + "constants": [ + { + "key": "ELASTIC_ROOT", + "value": url, + "priority": "mandatory" + } + ] + } + }); + + openmct.legacyRegistry.enable(bundleName); openmct.legacyRegistry.enable(bundleMap.elasticsearch); }; };