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:
parent
03dd1f27c1
commit
9e977f8fc5
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue