From 15aa43167fe12016ae5a8260adc7c9dbecabb008 Mon Sep 17 00:00:00 2001 From: Marian Ganisin Date: Wed, 6 Jul 2022 19:45:51 +0000 Subject: [PATCH] Don't check ssl in Tenant.wait_tenant_ready wait_tenant_ready is supposed to check availability of 3scale, secure connection is not required. --- threescale_api/resources.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/threescale_api/resources.py b/threescale_api/resources.py index 8ddc7c3..45f94f3 100644 --- a/threescale_api/resources.py +++ b/threescale_api/resources.py @@ -1110,7 +1110,9 @@ def wait_tenant_ready(self) -> bool: """ When True is returned, there is some chance the tenant is actually ready. """ - return self.admin_api().wait_for_tenant() + # Ignore ssl, this is about checking whether the initialization has + # been finished. + return self.admin_api(ssl_verify=False).wait_for_tenant() def admin_api(self, ssl_verify=True, wait=-1) -> 'client.ThreeScaleClient': """