Commit f411d373 authored by guangxuli's avatar guangxuli

break the loop if pod name was equal

parent d323fed0
...@@ -1549,6 +1549,7 @@ func WaitForPodToDisappear(c *client.Client, ns, podName string, label labels.Se ...@@ -1549,6 +1549,7 @@ func WaitForPodToDisappear(c *client.Client, ns, podName string, label labels.Se
if pod.Name == podName { if pod.Name == podName {
Logf("Pod %s still exists", podName) Logf("Pod %s still exists", podName)
found = true found = true
break
} }
} }
if !found { if !found {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment