Skip to content

Commit

Permalink
fixup! rbd: make VolumeGroup Create/Delete/AddVolume/RemoveVolume ide…
Browse files Browse the repository at this point in the history
…mpotent
  • Loading branch information
nixpanic committed Oct 2, 2024
1 parent eaefafb commit 7511fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/rbd/group/volume_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (vg *volumeGroup) RemoveVolume(ctx context.Context, vol types.Volume) error

err := vol.RemoveFromGroup(ctx, vg)
if err != nil {
if errors.Is(librbd.ErrNotExist, err) {
if errors.Is(err, librbd.ErrNotExist) {
return nil
}

Expand Down

0 comments on commit 7511fed

Please sign in to comment.