Also set overwriteDns when manifest is not provided

This commit is contained in:
Girish Ramakrishnan
2019-12-06 12:21:28 -08:00
parent 4e35020a1c
commit 16660e083f

View File

@@ -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;
}
}