Skip to content

Commit

Permalink
Fix check of PVCs for LUNs
Browse files Browse the repository at this point in the history
Signed-off-by: Arik Hadas <ahadas@redhat.com>
  • Loading branch information
ahadas committed Jul 16, 2023
1 parent ea9afc0 commit e1628b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/plan/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -1351,8 +1351,8 @@ func (r *Migration) updateCopyProgressForOvirt(vm *plan.VMStatus, step *plan.Ste
return
}
for _, pvc := range pvcs {
if _, ok := pvc.Annotations["lun"]; !ok {
// it's a lun
if _, ok := pvc.Annotations["lun"]; ok {
// skip LUNs
continue
}
claim := pvc.Spec.DataSource.Name
Expand Down

0 comments on commit e1628b5

Please sign in to comment.