From 0910301fa38101d09dcdd00d706e856c11e7ccdc Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Wed, 6 Mar 2024 17:41:15 -0600 Subject: [PATCH] test for proxy info --- stack_orchestrator/deploy/k8s/deploy_k8s.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stack_orchestrator/deploy/k8s/deploy_k8s.py b/stack_orchestrator/deploy/k8s/deploy_k8s.py index d6836dac..53cbd7d6 100644 --- a/stack_orchestrator/deploy/k8s/deploy_k8s.py +++ b/stack_orchestrator/deploy/k8s/deploy_k8s.py @@ -223,7 +223,8 @@ class K8sDeployer(Deployer): self._create_deployment() use_tls = not self.is_kind() - certificate = self._find_certificate_for_host_name(self.cluster_info.spec.get_http_proxy()[0]["host-name"]) if use_tls else None + http_proxy_info = self.cluster_info.spec.get_http_proxy() + certificate = self._find_certificate_for_host_name(http_proxy_info[0]["host-name"]) if http_proxy_info and use_tls else None if opts.o.debug: if certificate: print(f"Using existing certificate: {certificate}")