Skip to content

Commit

Permalink
groupsnapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
nixpanic committed Aug 22, 2024
1 parent 823b1d3 commit d60f341
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions internal/rbd/group/group_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d60f341

Please sign in to comment.