break the loop if pod name was equal

This commit is contained in:
guangxuli
2016-09-21 13:04:03 +08:00
parent d323fed024
commit f411d37363

View File

@@ -1549,6 +1549,7 @@ func WaitForPodToDisappear(c *client.Client, ns, podName string, label labels.Se
if pod.Name == podName {
Logf("Pod %s still exists", podName)
found = true
break
}
}
if !found {