Skip to content

Commit 0fbb0e1

Browse files
sagor999roboquat
authored andcommitted
pass workspace type in DeleteVolumeSnapshot
1 parent 5f4c07d commit 0fbb0e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/ws-manager/pkg/manager/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ func (m *Manager) DeleteVolumeSnapshot(ctx context.Context, req *api.DeleteVolum
545545
err = m.Clientset.Get(ctx, types.NamespacedName{Namespace: m.Config.Namespace, Name: req.Id}, &volumeSnapshot)
546546
if k8serr.IsNotFound(err) {
547547
if !req.SoftDelete {
548-
err = m.restoreVolumeSnapshotFromHandle(ctx, req.Id, req.VolumeHandle)
548+
err = m.restoreVolumeSnapshotFromHandle(ctx, req.WsType, req.Id, req.VolumeHandle)
549549
if err != nil {
550550
log.WithError(err).Error("was unable to restore volume snapshot")
551551
return nil, err

0 commit comments

Comments
 (0)