Merge pull request #78687 from pohly/WaitForPodsWithLabelRunningReady

e2e: fix return value of WaitForPodsWithLabelRunningReady
This commit is contained in:
Kubernetes Prow Robot 2019-06-18 08:04:22 -07:00 committed by GitHub
commit 0e499be526
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -534,7 +534,7 @@ func WaitForPodsWithLabelRunningReady(c clientset.Interface, ns string, label la
var current int
err = wait.Poll(poll, timeout,
func() (bool, error) {
pods, err := WaitForPodsWithLabel(c, ns, label)
pods, err = WaitForPodsWithLabel(c, ns, label)
if err != nil {
e2elog.Logf("Failed to list pods: %v", err)
if testutils.IsRetryableAPIError(err) {