Commit b7baab2d authored by Girish Ramakrishnan's avatar Girish Ramakrishnan

restore: set encryption to null

parent e2d28479
......@@ -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) {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment