[Plugins] Only register elasticsearch url when provided

This commit is contained in:
Victor Woeltjen 2017-01-12 15:08:45 -08:00
parent 39eb7ba862
commit c7ae520d7e

View File

@ -48,8 +48,8 @@ define([
plugins.ElasticSearch = function (url) {
return function (openmct) {
if (url) {
var bundleName = "config/elastic";
openmct.legacyRegistry.register(bundleName, {
"extensions": {
"constants": [
@ -61,8 +61,9 @@ define([
]
}
});
openmct.legacyRegistry.enable(bundleName);
}
openmct.legacyRegistry.enable(bundleMap.elasticsearch);
};
};