Skip to content

Commit 57344f7

Browse files
committed
force lowercase in auth add context, too
1 parent 8a8a672 commit 57344f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/authAddContext.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package cmd
1818
import (
1919
"fmt"
2020
"os"
21+
"strings"
2122

2223
"github.com/spf13/cobra"
2324

@@ -38,6 +39,8 @@ Use this if you've already setup contexts with "auth init".`,
3839
insecure, _ := cmd.Flags().GetBool("insecure")
3940
timeout, _ := cmd.Flags().GetInt("timeout")
4041

42+
contextName = strings.ToLower(contextName)
43+
4144
file, err := getExpectedConfigPath()
4245
if err != nil {
4346
lwCliInst.Die(err)

0 commit comments

Comments
 (0)