diff --git a/internal/operations/storage.go b/internal/operations/storage.go index 35092c9c810..a83fa6e0e7c 100644 --- a/internal/operations/storage.go +++ b/internal/operations/storage.go @@ -143,6 +143,9 @@ func UpdateStorage(ctx context.Context, storage model.Storage) error { if err != nil { return errors.WithMessage(err, "failed update storage in database") } + if storage.Disabled { + return nil + } storageDriver, err := GetStorageByVirtualPath(oldStorage.MountPath) if oldStorage.MountPath != storage.MountPath { // virtual path renamed, need to drop the storage