Skip to content

Commit

Permalink
Fix trailing slash on kube/config failure kubernetes-client#388
Browse files Browse the repository at this point in the history
  • Loading branch information
bran-wang committed Feb 12, 2018
1 parent 6f02e73 commit bc51a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/kube_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit bc51a01

Please sign in to comment.