storage: remove getProviderStatus

This commit is contained in:
Girish Ramakrishnan
2024-09-09 16:44:19 +02:00
parent 565ad83399
commit ea72cef7f9
9 changed files with 4 additions and 44 deletions
+1 -1
View File
@@ -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}`);