diff --git a/src/plugins/plugins.js b/src/plugins/plugins.js index fc4c83e167..09a4fd4f01 100644 --- a/src/plugins/plugins.js +++ b/src/plugins/plugins.js @@ -48,21 +48,22 @@ define([ plugins.ElasticSearch = function (url) { return function (openmct) { - var bundleName = "config/elastic"; + if (url) { + var bundleName = "config/elastic"; + openmct.legacyRegistry.register(bundleName, { + "extensions": { + "constants": [ + { + "key": "ELASTIC_ROOT", + "value": url, + "priority": "mandatory" + } + ] + } + }); + openmct.legacyRegistry.enable(bundleName); + } - openmct.legacyRegistry.register(bundleName, { - "extensions": { - "constants": [ - { - "key": "ELASTIC_ROOT", - "value": url, - "priority": "mandatory" - } - ] - } - }); - - openmct.legacyRegistry.enable(bundleName); openmct.legacyRegistry.enable(bundleMap.elasticsearch); }; };