[Plugins] Allow CouchDB URL to be specified

This commit is contained in:
Victor Woeltjen 2017-01-12 15:10:14 -08:00
parent c7ae520d7e
commit 077f076c43

View File

@ -41,6 +41,21 @@ define([
plugins.CouchDB = function (url) {
return function (openmct) {
if (url) {
var bundleName = "config/couch";
openmct.legacyRegistry.register(bundleName, {
"extensions": {
"constants": [
{
"key": "COUCH_PATH",
"value": url,
"priority": "mandatory"
}
]
}
});
openmct.legacyRegistry.enable(bundleName);
}
openmct.legacyRegistry.enable(bundleMap.couchDB);
};