repair: reconfigure for all other states

the idea was that the failed routes can be called again in other cases
This commit is contained in:
Girish Ramakrishnan
2019-12-20 17:00:50 -08:00
parent aabbc43769
commit 681079e01c

View File

@@ -1364,7 +1364,7 @@ function repair(appId, data, auditSource, callback) {
get(appId, function (error, app) {
if (error) return callback(error);
const errorState = (app.error && app.error.installationState) || exports.ISTATE_PENDING_CONFIGURE;
let errorState = (app.error && app.error.installationState) || exports.ISTATE_PENDING_CONFIGURE;
const task = {
args: {},
@@ -1385,6 +1385,8 @@ function repair(appId, data, auditSource, callback) {
task.values.manifest = data.manifest;
task.args.oldManifest = app.manifest;
}
} else {
errorState = exports.ISTATE_PENDING_CONFIGURE;
}
addTask(appId, errorState, task, function (error, result) {