summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Elliott <mike.elliott@amdocs.com>2019-10-11 17:15:39 +0000
committerGerrit Code Review <gerrit@onap.org>2019-10-11 17:15:39 +0000
commitcddc62cd03bdf28daed32809a6c0aea45e1c4592 (patch)
tree3efadbbdda7f94cf5559bbdce67bd1e7e1ea20e5
parent50f825e6ba947d0de8f5082ab29e43011a523891 (diff)
parentb77da7a27ad6aa97bc4352246242ba04d86dbad3 (diff)
Merge "Make readiness-check work when updatedReplicas is None"
-rw-r--r--kubernetes/readiness/docker/init/ready.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kubernetes/readiness/docker/init/ready.py b/kubernetes/readiness/docker/init/ready.py
index db7105a18d..3f76d10395 100644
--- a/kubernetes/readiness/docker/init/ready.py
+++ b/kubernetes/readiness/docker/init/ready.py
@@ -79,7 +79,7 @@ def wait_for_deployment_complete(deployment_name):
response = api.read_namespaced_deployment(deployment_name, namespace)
s = response.status
if (s.unavailable_replicas is None and
- s.updated_replicas == response.spec.replicas and
+ ( s.updated_replicas is None or s.updated_replicas == response.spec.replicas ) and
s.replicas == response.spec.replicas and
s.ready_replicas == response.spec.replicas and
s.observed_generation == response.metadata.generation):