Skip to content

Commit 972ef3b

Browse files
authored
fix: Correct github_organization_role_teams & github_organization_role_users typos (#2994)
Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>
1 parent 75ed20e commit 972ef3b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

github/data_source_github_organization_role_teams.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func dataSourceGithubOrganizationRoleTeamsRead(ctx context.Context, d *schema.Re
9292

9393
for _, team := range teams {
9494
t := map[string]any{
95-
"id": team.GetID(),
95+
"team_id": team.GetID(),
9696
"slug": team.GetSlug(),
9797
"name": team.GetName(),
9898
"permission": team.GetPermission(),

github/data_source_github_organization_role_teams_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func TestAccDataSourceGithubOrganizationRoleTeams(t *testing.T) {
4141
Check: resource.ComposeTestCheckFunc(
4242
resource.TestCheckResourceAttrSet("data.github_organization_role_teams.test", "teams.#"),
4343
resource.TestCheckResourceAttr("data.github_organization_role_teams.test", "teams.#", "1"),
44-
resource.TestCheckResourceAttrPair("data.github_organization_role_teams.test", "teams.0.team_id", "github_team.test", "id"),
44+
resource.TestCheckResourceAttrPair("data.github_organization_role_teams.test", "teams.0.team_id", "github_team.test", "team_id"),
4545
resource.TestCheckResourceAttrPair("data.github_organization_role_teams.test", "teams.0.slug", "github_team.test", "slug"),
4646
resource.TestCheckResourceAttrPair("data.github_organization_role_teams.test", "teams.0.name", "github_team.test", "name"),
4747
),

github/data_source_github_organization_role_users.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ func dataSourceGithubOrganizationRoleUsersRead(ctx context.Context, d *schema.Re
8282

8383
for _, user := range users {
8484
u := map[string]any{
85-
"id": user.GetID(),
86-
"login": user.GetLogin(),
85+
"user_id": user.GetID(),
86+
"login": user.GetLogin(),
8787
}
8888
allUsers = append(allUsers, u)
8989
}

0 commit comments

Comments
 (0)