Skip to content

Commit

Permalink
Return true if the PVC is filesystem but has correct annotations. (#126)
Browse files Browse the repository at this point in the history
The return was missed and it was returning false even if it should return true.

Signed-off-by: Alexander Wels <[email protected]>
  • Loading branch information
awels authored Sep 19, 2024
1 parent 005b344 commit d0522f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions state_transfer/transfer/pvc_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ func isBlockOrVMDisk(pvc *v1.PersistentVolumeClaim) bool {
if v, ok := pvc.GetAnnotations()[kubeVirtAnnKey]; !ok || v != kubevirtContentType {
return false
}
isBlock = true
}
return isBlock
}
Expand Down

0 comments on commit d0522f7

Please sign in to comment.