Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

Commit 13a9a13

Browse files
sledigabeldanmx
andauthored
fix: profile to command line parser
While trying out the command with the `--profile` flag with traces on, I've noticed the profile wasn't passed through the AWS call. `AWS_PROFILE` could override it, and looking at the code, it looks like an omission (region was there twice). Feel free to discard this PR if this was intentional. Co-authored-by: Daniel Iziourov <[email protected]>
1 parent b85584e commit 13a9a13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/root.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func initConfig(cmd *cobra.Command) error {
164164
}).Error(err)
165165
return err
166166
}
167-
for _, key := range []string{"region", "config-profile", "region"} {
167+
for _, key := range []string{"region", "config-profile", "profile"} {
168168
if err := cfg.BindPFlag(key, cmd.PersistentFlags().Lookup(key)); err != nil {
169169
log.WithFields(log.Fields{
170170
"flag": key,

0 commit comments

Comments
 (0)