Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: yaroslavborbat <[email protected]>
  • Loading branch information
yaroslavborbat committed Jan 16, 2025
1 parent ca722cd commit d70bac4
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,22 +178,6 @@ func (s AttachmentService) UnplugDisk(ctx context.Context, ad *AttachmentDisk, k
return s.virtClient.VirtualMachines(kvvm.GetNamespace()).RemoveVolume(ctx, kvvm.GetName(), v1alpha2.VirtualMachineRemoveVolume{
Name: ad.GenerateName,
})

// unplugRequest := virtv1.RemoveVolumeOptions{
// Name: ad.GenerateName,
//}
//
//kv, err := kubevirt.New(ctx, s.client, s.controllerNamespace)
//if err != nil {
// return err
//}
//
//err = kvapi.New(s.client, kv).RemoveVolume(ctx, kvvm, &unplugRequest)
//if err != nil {
// return fmt.Errorf("error removing volume, %w", err)
//}
//
//return nil
}

// IsConflictedAttachment returns true if the provided VMBDA conflicts with another
Expand Down

0 comments on commit d70bac4

Please sign in to comment.