Skip to content

Commit

Permalink
Fix Open browser and open browser command behavior that was fouled in…
Browse files Browse the repository at this point in the history
… v2 release.

Closes #168
  • Loading branch information
monde committed Feb 9, 2024
1 parent 490e0c0 commit 61ebe7d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## Major.Minor.Revision (Month Day, Year)

TBD

### BUG FIXES

* Open browser and open browser command behavior was fouled in v2 release [#NNN](https://github.com/okta/okta-aws-cli/pull/NNN), thanks [@monde](https://github.com/monde)!

## 2.0.1 (January 31, 2024)

### ENHANCEMENTS
Expand Down
4 changes: 3 additions & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,11 @@ func readConfig() (Attributes, error) {
attrs.OpenBrowser = viper.GetBool(downCase(OpenBrowserEnvVar))
}
if attrs.OpenBrowserCommand == "" {
attrs.OpenBrowserCommand = viper.GetString(downCase(OpenBrowserCommandEnvVar))
}
if attrs.OpenBrowserCommand != "" {
// open browser command implies open browser
attrs.OpenBrowser = true
attrs.OpenBrowserCommand = viper.GetString(downCase(OpenBrowserCommandEnvVar))
}
if !attrs.Debug {
attrs.Debug = viper.GetBool(downCase(DebugEnvVar))
Expand Down

0 comments on commit 61ebe7d

Please sign in to comment.