Skip to content

Commit

Permalink
Merge pull request #92 from FabianKramm/main
Browse files Browse the repository at this point in the history
fix(cli): use prefix instead of suffix
  • Loading branch information
FabianKramm authored Jul 20, 2021
2 parents 6687c96 + a30bca2 commit 5cfa39f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/vclusterctl/cmd/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (cmd *ConnectCmd) Connect(vclusterName string) error {
port := ""
for k := range kubeConfig.Clusters {
if cmd.Server != "" {
if strings.HasSuffix(cmd.Server, "https://") == false {
if strings.HasPrefix(cmd.Server, "https://") == false {
cmd.Server = "https://" + cmd.Server
}

Expand Down

0 comments on commit 5cfa39f

Please sign in to comment.