diff --git a/sdk/python/kfp/_client.py b/sdk/python/kfp/_client.py index 3b60512cbd9..84215afcde6 100644 --- a/sdk/python/kfp/_client.py +++ b/sdk/python/kfp/_client.py @@ -118,7 +118,7 @@ def _load_config(self, host, client_id, namespace, other_client_id, other_client host = host or '' # Preprocess the host endpoint to prevent some common user mistakes. - host = host.lstrip(r'(https|http)://').rstrip('/') + host = re.sub(r'^(http|https)://', '', host).rstrip('/') if host: config.host = host @@ -522,7 +522,7 @@ def schedule_pipeline(self, experiment_id, job_name, pipeline_package_path=None, trigger=trigger, enabled=True, ) - #[TODO] Add link to the scheduled job. + #[TODO] Add link to the scheduled job. response = self._job_api.create_job(body=schedule_body)