Also set overwriteDns when manifest is not provided
This commit is contained in:
@@ -1369,6 +1369,7 @@ function repair(appId, data, auditSource, callback) {
|
||||
};
|
||||
|
||||
if (errorState === exports.ISTATE_PENDING_INSTALL || errorState === exports.ISTATE_PENDING_CLONE) {
|
||||
task.args = { overwriteDns: true };
|
||||
if (data.manifest) {
|
||||
error = manifestFormat.parse(data.manifest);
|
||||
if (error) return callback(new BoxError(BoxError.BAD_FIELD, `manifest error: ${error.message}`));
|
||||
@@ -1377,7 +1378,7 @@ function repair(appId, data, auditSource, callback) {
|
||||
if (error) return callback(error);
|
||||
|
||||
task.values.manifest = data.manifest;
|
||||
task.args = { overwriteDns: true, oldManifest: app.manifest };
|
||||
task.args.oldManifest = app.manifest;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user