backups: fix various mount issues

This commit is contained in:
Girish Ramakrishnan
2021-05-17 15:58:38 -07:00
parent 599b604dca
commit 14bb928d41
5 changed files with 45 additions and 38 deletions

View File

@@ -106,7 +106,6 @@ function setBackupConfig(req, res, next) {
if (!req.body.retentionPolicy || typeof req.body.retentionPolicy !== 'object') return next(new HttpError(400, 'retentionPolicy is required'));
if ('mountType' in req.body && typeof req.body.mountType !== 'string') return next(new HttpError(400, 'mountType must be a string'));
if ('mountOptions' in req.body && typeof req.body.mountOptions !== 'object') return next(new HttpError(400, 'mountOptions must be a object'));
// testing the backup using put/del takes a bit of time at times