restore: set encryption to null

This commit is contained in:
Girish Ramakrishnan
2020-05-18 09:07:18 -07:00
parent e2d284797d
commit b7baab2d0f

View File

@@ -212,6 +212,8 @@ function restore(backupConfig, backupId, version, sysinfoConfig, auditSource, ca
if ('password' in backupConfig) {
backupConfig.encryption = backups.generateEncryptionKeysSync(backupConfig.password);
delete backupConfig.password;
} else {
backupConfig.encryption = null;
}
sysinfo.testConfig(sysinfoConfig, function (error) {