Fix log message guard

A generator expression was being checked for emptiness, which does
not support that, hence the log message was being generated
erroneously, so switched to using a list comprehension.

Change-Id: I88459f120f1c69b3396db440146ca75e2a5471ca
This commit is contained in:
Sean Eagan 2019-02-05 14:11:18 -06:00
parent 03dd1f27c1
commit 9e977f8fc5
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ class Test(object):
}
pod_list = self.tiller.k8s.client.list_namespaced_pod(**list_args)
test_pods = (pod for pod in pod_list.items if is_test_pod(pod))
test_pods = [pod for pod in pod_list.items if is_test_pod(pod)]
if test_pods:
LOG.info(