Skip to content

Commit

Permalink
Fix index out of range error
Browse files Browse the repository at this point in the history
  • Loading branch information
wadahiro committed Apr 22, 2019
1 parent c6de212 commit d784075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/aws_saml.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func promptForAWSRoleSelection(awsRoles []*saml2aws.AWSRole) (*saml2aws.AWSRole,
})
i, _ := strconv.Atoi(answer)

return roles[roleOptions[i]], nil
return roles[roleOptions[i-1]], nil
}

func loginToStsUsingRole(role *saml2aws.AWSRole, samlResponse string) (*AWSCredentials, error) {
Expand Down

0 comments on commit d784075

Please sign in to comment.