rename backup key to password

Fixes #579
This commit is contained in:
Girish Ramakrishnan
2020-05-12 10:31:51 -07:00
parent 66cdba9c1a
commit 21073c627e
7 changed files with 38 additions and 19 deletions
+1 -2
View File
@@ -142,7 +142,6 @@ let gDefaults = (function () {
result[exports.CLOUDRON_TOKEN_KEY] = '';
result[exports.BACKUP_CONFIG_KEY] = {
provider: 'filesystem',
key: '',
backupFolder: '/var/backups',
format: 'tgz',
retentionSecs: 2 * 24 * 60 * 60, // 2 days
@@ -386,7 +385,7 @@ function getBackupConfig(callback) {
if (error && error.reason === BoxError.NOT_FOUND) return callback(null, gDefaults[exports.BACKUP_CONFIG_KEY]);
if (error) return callback(error);
callback(null, JSON.parse(value)); // provider, token, key, region, prefix, bucket
callback(null, JSON.parse(value)); // provider, token, password, region, prefix, bucket
});
}