Merge "Fixing typo on README_HELM"
authorMandeep Khinda <Mandeep.Khinda@amdocs.com>
Wed, 14 Feb 2018 15:21:42 +0000 (15:21 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 14 Feb 2018 15:21:42 +0000 (15:21 +0000)
kubernetes/readiness/docker/init/ready.py

index c5b55ee..7cfb6cd 100644 (file)
@@ -36,6 +36,9 @@ def is_ready(container_name):
     try:
         response = v1.list_namespaced_pod(namespace=namespace, watch=False)
         for i in response.items:
+            # container_statuses can be None, which is non-iterable.
+            if i.status.container_statuses is None:
+               continue
             for s in i.status.container_statuses:
                 if s.name == container_name:
                     ready = s.ready