Skip to content

Commit

Permalink
check if sso-session section is present, fixes #1845
Browse files Browse the repository at this point in the history
  • Loading branch information
isaiahvita committed Nov 2, 2022
1 parent 1a42dc1 commit d417416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/shared_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ func (c *SharedConfig) hasCredentials() bool {
// this func assumes legacy format
func (c *SharedConfig) hasSSOConfiguration() bool {
switch {
case len(c.SSOSessionName) != 0:
case c.SSOSession != nil:
case len(c.SSOAccountID) != 0:
case len(c.SSORegion) != 0:
case len(c.SSORoleName) != 0:
Expand Down

0 comments on commit d417416

Please sign in to comment.