Preserve addons credentials when restoring

This commit is contained in:
Girish Ramakrishnan
2018-05-22 12:05:55 -07:00
parent 8b3edf6efc
commit 9c073e7bee
2 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -1203,7 +1203,7 @@ function restoreInstalledApps(callback) {
debug(`marking ${app.fqdn} for restore using restore config ${JSON.stringify(restoreConfig)}`);
appdb.setInstallationCommand(app.id, appdb.ISTATE_PENDING_RESTORE, { restoreConfig: restoreConfig, oldConfig: null }, function (error) {
appdb.setInstallationCommand(app.id, appdb.ISTATE_PENDING_RESTORE, { restoreConfig: restoreConfig, oldConfig: getAppConfig(app) }, function (error) {
if (error) debug(`Error marking ${app.fqdn} for restore: ${JSON.stringify(error)}`);
iteratorDone(); // always succeed