diff --git a/internal/rbd/group/group_snapshot.go b/internal/rbd/group/group_snapshot.go index 1565d6480be3..b79ff8544afa 100644 --- a/internal/rbd/group/group_snapshot.go +++ b/internal/rbd/group/group_snapshot.go @@ -150,22 +150,7 @@ func (vgs *volumeGroupSnapshot) Destroy(ctx context.Context) { vgs.snapshotsToFree = make([]types.Snapshot, 0) } - if vgs.ioctx != nil { - vgs.ioctx.Destroy() - vgs.ioctx = nil - } - - if vgs.conn != nil { - vgs.conn.Destroy() - vgs.conn = nil - } - - if vgs.credentials != nil { - vgs.credentials.DeleteCredentials() - vgs.credentials = nil - } - - log.DebugLog(ctx, "destroyed volume group instance with id %q", vgs.id) + vgs.commonVolumeGroup.Destroy(ctx) } func (vgs *volumeGroupSnapshot) Create(ctx context.Context) error {