mirror of https://gitee.com/bigwinds/arangodb
Make sure manifest always has config and deps.
This commit is contained in:
parent
a2d99b55ec
commit
fcbd66c2ff
|
@ -161,6 +161,12 @@ function computeRootAppPath(mount, isValidation) {
|
||||||
name: "unknown",
|
name: "unknown",
|
||||||
version: "error"
|
version: "error"
|
||||||
};
|
};
|
||||||
|
if (!this._manifest.configuration) {
|
||||||
|
this._manifest.configuration = {};
|
||||||
|
}
|
||||||
|
if (!this._manifest.dependencies) {
|
||||||
|
this._manifest.dependencies = {};
|
||||||
|
}
|
||||||
this._name = this._manifest.name;
|
this._name = this._manifest.name;
|
||||||
this._version = this._manifest.version;
|
this._version = this._manifest.version;
|
||||||
this._root = computeRootAppPath(config.mount, config.id === "__internal");
|
this._root = computeRootAppPath(config.mount, config.id === "__internal");
|
||||||
|
|
Loading…
Reference in New Issue