Skip to content

Commit

Permalink
Merge pull request #310 from heroku/fix-data-source-team-members
Browse files Browse the repository at this point in the history
Fix data.heroku_team_members not respecting specified roles
  • Loading branch information
davidji99 authored May 18, 2021
2 parents 9a61ee8 + 733b2be commit a8c9954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion heroku/data_source_heroku_team_members.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func dataSourceHerokuTeamMembersRead(ctx context.Context, d *schema.ResourceData
members := make([]map[string]interface{}, 0)

for _, m := range teamMembers {
if SliceContainsString(TeamMemberRoles, *m.Role) {
if SliceContainsString(roles, *m.Role) {
member := make(map[string]interface{})
member["team_member_id"] = m.ID
member["user_id"] = m.User.ID
Expand Down

0 comments on commit a8c9954

Please sign in to comment.