Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Jul 24, 2024
1 parent d849fc9 commit 8f32602
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pkg/ctl/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import (
const (
EnvAssumeYes = "ACK_RAM_TOOL_ASSUME_YES"
EnvProfileFile = "ACK_RAM_TOOL_PROFILE_FILE"
EnvProfileName = "ACK_RAM_TOOL_PROFIL_ENAME"
EnvProfileNameOld = "ACK_RAM_TOOL_PROFIL_ENAME"
EnvProfileName = "ACK_RAM_TOOL_PROFILE_NAME"
EnvIgnoreEnvCredentials = "ACK_RAM_TOOL_IGNORE_ENV_CREDENTIALS" // #nosec G101
EnvIgnoreAliyunCliCredentials = "ACK_RAM_TOOL_IGNORE_ALIYUN_CLI_CREDENTIALS" // #nosec G101
EnvLogLevel = "ACK_RAM_TOOL_LOG_LEVEL"
Expand Down Expand Up @@ -58,6 +59,9 @@ func (g *globalOption) UpdateValues() {
}
if g.ProfileName == "" {
g.ProfileName = os.Getenv(EnvProfileName)
if g.ProfileName == "" {
g.ProfileName = os.Getenv(EnvProfileNameOld)
}
}
if v, err := strconv.ParseBool(os.Getenv(EnvIgnoreEnvCredentials)); err == nil && v {
g.IgnoreEnv = true
Expand Down
1 change: 0 additions & 1 deletion pkg/openapi/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/aliyun/credentials-go/credentials"
"os"
"strings"
// "github.com/aliyun/credentials-go/credentials"
)

var (
Expand Down

0 comments on commit 8f32602

Please sign in to comment.