Skip to content

Commit cc172cc

Browse files
committed
fix(sync-gitlab): Pass Team in call to remove_team_member instead of the team ID
1 parent a4fda4e commit cc172cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

team-mapping-gitlab-gitguardian/sync_gitlab.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@ def synchronize_team_members(
325325
invitation_by_id[team_invitation.invitation_id].email,
326326
)
327327

328-
team_id = gg_team.id
329328
for member in members_to_add:
330329
# If the member exists in GitGuardian, we can add him to the team
331330
if member in members_by_emails:
@@ -351,7 +350,7 @@ def synchronize_team_members(
351350
None,
352351
)
353352
if team_member_id:
354-
remove_team_member(team_id, team_member_id)
353+
remove_team_member(gg_team, team_member_id)
355354

356355

357356
def infer_gitlab_email(

0 commit comments

Comments
 (0)