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

View File

@@ -380,7 +380,7 @@ async function getMountStatus() {
} else if (backupConfig.provider === 'filesystem') {
hostPath = backupConfig.backupFolder;
} else {
throw new BoxError(BoxError.BAD_STATE, 'Backup location is not a mount');
return { state: 'active' };
}
return await mounts.getStatus(backupConfig.provider, hostPath); // { state, message }