Skip to content

Commit

Permalink
force lowercase in auth add context, too
Browse files Browse the repository at this point in the history
  • Loading branch information
sgsullivan committed Jun 20, 2020
1 parent 8a8a672 commit 57344f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/authAddContext.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package cmd
import (
"fmt"
"os"
"strings"

"github.com/spf13/cobra"

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

contextName = strings.ToLower(contextName)

file, err := getExpectedConfigPath()
if err != nil {
lwCliInst.Die(err)
Expand Down

0 comments on commit 57344f7

Please sign in to comment.