@@ -89,7 +89,7 @@ func resourceGithubEMUGroupMappingCreate(ctx context.Context, d *schema.Resource
8989
9090 tflog .Debug (ctx , "Successfully updated connected external group" )
9191
92- teamID , err := lookupTeamID (ctx , meta .( * Owner ) , teamSlug )
92+ teamID , err := lookupTeamID (ctx , client , orgName , teamSlug )
9393 if err != nil {
9494 return diag .FromErr (err )
9595 }
@@ -306,7 +306,11 @@ func resourceGithubEMUGroupMappingDelete(ctx context.Context, d *schema.Resource
306306 return nil
307307}
308308
309- func resourceGithubEMUGroupMappingImport (ctx context.Context , d * schema.ResourceData , meta any ) ([]* schema.ResourceData , error ) {
309+ func resourceGithubEMUGroupMappingImport (ctx context.Context , d * schema.ResourceData , m any ) ([]* schema.ResourceData , error ) {
310+ meta := m .(* Owner )
311+ client := meta .v3client
312+ orgName := meta .name
313+
310314 importID := d .Id ()
311315 tflog .Trace (ctx , "Importing EMU group mapping with two-part ID" , map [string ]any {
312316 "import_id" : importID ,
@@ -329,7 +333,7 @@ func resourceGithubEMUGroupMappingImport(ctx context.Context, d *schema.Resource
329333 "team_slug" : teamSlug ,
330334 })
331335
332- teamID , err := lookupTeamID (ctx , meta .( * Owner ) , teamSlug )
336+ teamID , err := lookupTeamID (ctx , client , orgName , teamSlug )
333337 if err != nil {
334338 return nil , err
335339 }
0 commit comments