Skip to content

Commit

Permalink
plan: check error returned by GetPopulatorTaskName
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Martín <[email protected]>
  • Loading branch information
mmartinv authored and ahadas committed Aug 3, 2023
1 parent bf680ca commit b8471ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controller/plan/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -1596,6 +1596,9 @@ func (r *Migration) updatePopulatorCopyProgress(vm *plan.VMStatus, step *plan.St
var task *plan.Task
var taskName string
taskName, err = r.builder.GetPopulatorTaskName(&pvc)
if err != nil {
return
}

found := false
if task, found = step.FindTask(taskName); !found {
Expand Down

0 comments on commit b8471ca

Please sign in to comment.