From db3ee3412b482fe9c71e2cfc48b78fbc24e0adf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20LUU?= Date: Fri, 6 Feb 2026 11:48:24 +0100 Subject: [PATCH] fix host verification disable not working https://github.com/IBM/platform-services-python-sdk/issues/316 --- ibm_platform_services/global_catalog_v1.py | 4 +++- ibm_platform_services/global_search_v2.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ibm_platform_services/global_catalog_v1.py b/ibm_platform_services/global_catalog_v1.py index cde4009..fd654f6 100644 --- a/ibm_platform_services/global_catalog_v1.py +++ b/ibm_platform_services/global_catalog_v1.py @@ -68,6 +68,7 @@ def new_instance( def __init__( self, authenticator: Authenticator = None, + disable_ssl_verification: bool = False ) -> None: """ Construct a new client for the Global Catalog service. @@ -76,7 +77,8 @@ def __init__( Get up to date information from https://github.com/IBM/python-sdk-core/blob/main/README.md about initializing the authenticator of your choice. """ - BaseService.__init__(self, service_url=self.DEFAULT_SERVICE_URL, authenticator=authenticator) + BaseService.__init__(self, service_url=self.DEFAULT_SERVICE_URL, authenticator=authenticator, + disable_ssl_verification=disable_ssl_verification) ######################### # Object diff --git a/ibm_platform_services/global_search_v2.py b/ibm_platform_services/global_search_v2.py index 793c310..d8d51f1 100644 --- a/ibm_platform_services/global_search_v2.py +++ b/ibm_platform_services/global_search_v2.py @@ -76,7 +76,8 @@ def __init__( Get up to date information from https://github.com/IBM/python-sdk-core/blob/main/README.md about initializing the authenticator of your choice. """ - BaseService.__init__(self, service_url=self.DEFAULT_SERVICE_URL, authenticator=authenticator) + BaseService.__init__(self, service_url=self.DEFAULT_SERVICE_URL, authenticator=authenticator, + disable_ssl_verification=authenticator.token_manager.disable_ssl_verification) ######################### # Search