storage: remove getProviderStatus
This commit is contained in:
@@ -279,7 +279,7 @@ async function run(progressCallback) {
|
||||
const { retention } = await backups.getPolicy();
|
||||
debug(`run: retention is ${JSON.stringify(retention)}`);
|
||||
|
||||
const status = await storage.api(backupConfig.provider).getProviderStatus(backupConfig);
|
||||
const status = await backups.getMountStatus();
|
||||
debug(`run: mount point status is ${JSON.stringify(status)}`);
|
||||
if (status.state !== 'active') throw new BoxError(BoxError.MOUNT_ERROR, `Backup endpoint is not mounted: ${status.message}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user