Skip to content

Commit

Permalink
Fix openshift#180: Remove traling slash from client Host
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVitek committed Oct 7, 2014
1 parent 043e5c6 commit c17fbe7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cmd/client/kubecfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ func (c *KubeConfig) Run() {
// TODO: eventually apiserver should start on 443 and be secure by default
clientConfig.Host = "http://localhost:8080"
}
clientConfig.Host = strings.TrimRight(clientConfig.Host, "/")

if kubeclient.IsConfigTransportSecure(clientConfig) {
auth, err := kubecfg.LoadAuthInfo(c.AuthConfig, os.Stdin)
Expand Down

0 comments on commit c17fbe7

Please sign in to comment.