[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,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);
};
};