Skip to content

Commit 4a72832

Browse files
committed
ListExternalGroupsForTeamBySlug does not return a nested Teams slice. We need to directly lookup TeamID
Signed-off-by: Timo Sand <[email protected]>
1 parent 705b3b0 commit 4a72832

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

github/resource_github_emu_group_mapping.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func resourceGithubEMUGroupMappingRead(ctx context.Context, d *schema.ResourceDa
208208
return diag.FromErr(err)
209209
}
210210

211-
teamID, err := matchTeamID(ctx, meta, teamSlug, group.Teams)
211+
teamID, err := lookupTeamID(ctx, meta.(*Owner), teamSlug)
212212
if err != nil {
213213
return diag.FromErr(err)
214214
}

github/resource_github_emu_group_mapping_migration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func resourceGithubEMUGroupMappingInstanceStateUpgradeV0(ctx context.Context, ra
5151
return nil, err
5252
}
5353
group := groupsList.Groups[0]
54-
teamID, err := matchTeamID(ctx, meta, teamSlug, group.Teams)
54+
teamID, err := lookupTeamID(ctx, meta.(*Owner), teamSlug)
5555
if err != nil {
5656
return nil, err
5757
}

0 commit comments

Comments
 (0)