From bc51a01453bd7c401870c2e3f81f74b340f8fcfc Mon Sep 17 00:00:00 2001 From: bran-wang Date: Mon, 12 Feb 2018 13:05:06 +0800 Subject: [PATCH] Fix trailing slash on kube/config failure #388 --- config/kube_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/kube_config.py b/config/kube_config.py index 4e09d6a9..85a72e63 100644 --- a/config/kube_config.py +++ b/config/kube_config.py @@ -226,7 +226,7 @@ def _load_user_pass_token(self): def _load_cluster_info(self): if 'server' in self._cluster: - self.host = self._cluster['server'] + self.host = self._cluster['server'].rstrip('/') if self.host.startswith("https"): self.ssl_ca_cert = FileOrData( self._cluster, 'certificate-authority',