Skip to content

Commit

Permalink
fix nil pointer dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelPalmer1 committed Oct 28, 2020
1 parent ff6fef2 commit 5d2a7bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gossamer3/commands/bulk_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (input *PrimaryRoleInput) Assume(roleSessionName string, force bool) {
// 2. AccountMap region
// 3. Default region from IDPAccount configuration
region := input.Account.Region
accountNumber := strings.Split(input.Role.RoleARN, ":")[4]
accountNumber := strings.Split(input.RoleConfig.PrimaryRoleArn, ":")[4]
if input.RoleConfig.Region != "" {
region = input.RoleConfig.Region
} else if r, ok := input.AccountRegionMap[accountNumber]; ok {
Expand Down

0 comments on commit 5d2a7bb

Please sign in to comment.