Browse Source

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
changes/26/635026/1
Sean Eagan 3 months ago
parent
commit
9e977f8fc5
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      armada/handlers/test.py

+ 1
- 1
armada/handlers/test.py View File

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

Loading…
Cancel
Save