Skip to content

Commit

Permalink
break after selecting proper pod for migration
Browse files Browse the repository at this point in the history
  • Loading branch information
admiyo committed May 3, 2017
1 parent 6fcd630 commit 38c1207
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/virt-controller/watch/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ func investigateTargetPodSituation(migration *v1.Migration, podList *k8sv1.PodLi
for _, pod := range podList.Items {
if pod.Labels[v1.MigrationUIDLabel] == string(migration.GetObjectMeta().GetUID()) {
targetPod = &pod
break
}
}
return len(podList.Items), targetPod
Expand Down

0 comments on commit 38c1207

Please sign in to comment.