Skip to content

Commit

Permalink
Handle env for deploy loader. (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-rieke committed Jul 5, 2024
1 parent d9bb17e commit fb1dc17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cli/trcconfigbase/trcconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func CommonMain(envDefaultPtr *string,
flagset.PrintDefaults()
}

envPtr = flagset.String("env", "dev", "Environment to configure")
envPtr = flagset.String("env", "", "Environment to configure")
flagset.String("addr", "", "API endpoint for the vault")
flagset.String("token", "", "Vault access token")
flagset.String("secretID", "", "Secret for app role ID")
Expand Down Expand Up @@ -178,7 +178,7 @@ func CommonMain(envDefaultPtr *string,
*wantCertsPtr = true
}
}
if envPtr == nil {
if envPtr == nil || len(*envPtr) == 0 {
envPtr = envDefaultPtr
}
if !isShell {
Expand Down

0 comments on commit fb1dc17

Please sign in to comment.