We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e833613 + 7102c75 commit 72f1fefCopy full SHA for 72f1fef
internal/install/command.go
@@ -3,6 +3,7 @@ package install
3
import (
4
"errors"
5
"fmt"
6
+ "strings"
7
8
log "github.com/sirupsen/logrus"
9
"github.com/spf13/cobra"
@@ -68,7 +69,7 @@ func assertProfileIsValid(profile *credentials.Profile) error {
68
69
if profile == nil {
70
return errors.New("default profile has not been set")
71
}
- if profile.Region != "US" {
72
+ if !strings.EqualFold(profile.Region, "US") {
73
return fmt.Errorf("only the US region is supported at this time. region %s is not supported", profile.Region)
74
75
return nil
0 commit comments