mirror of
https://github.com/nasa/openmct.git
synced 2024-12-21 22:17:49 +00:00
[Plugins] Only register elasticsearch url when provided
This commit is contained in:
parent
39eb7ba862
commit
c7ae520d7e
@ -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);
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user