Skip to content

Commit 87968d1

Browse files
committed
fix crash when aws region is not specified in config
1 parent 2ae9dd9 commit 87968d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/sso/console.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,5 @@ func (p *Console) OpenBrowser(ctx context.Context, credentials *aws.Credentials)
7777
return nil
7878
}
7979

80-
return browsers.LaunchConsoleSession(browsers.SessionFromCredentials(*credentials), browserOpts, "", profile.AWSConfig.Region)
80+
return browsers.LaunchConsoleSession(browsers.SessionFromCredentials(*credentials), browserOpts, "", region)
8181
}

0 commit comments

Comments
 (0)