Skip to content

Commit

Permalink
fix: delete teams rest api call
Browse files Browse the repository at this point in the history
  • Loading branch information
netomi committed Jan 1, 2025
1 parent b22a9d5 commit b8e771a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions otterdog/providers/github/rest/org_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# *******************************************************************************
# Copyright (c) 2023-2024 Eclipse Foundation and others.
# Copyright (c) 2023-2025 Eclipse Foundation and others.
# This program and the accompanying materials are made available
# under the terms of the Eclipse Public License 2.0
# which is available at http://www.eclipse.org/legal/epl-v20.html
Expand Down Expand Up @@ -573,7 +573,7 @@ async def remove_member_from_team(self, org_id: str, team_slug: str, user: str)
async def delete_team(self, org_id: str, team_slug: str) -> None:
_logger.debug("deleting team '%s' for org '%s'", team_slug, org_id)

status, body = await self.requester.request_raw("DELETE", f"/orgs/{org_id}/team/{team_slug}")
status, body = await self.requester.request_raw("DELETE", f"/orgs/{org_id}/teams/{team_slug}")

if status != 204:
raise RuntimeError(f"failed to delete team '{team_slug}': {body}")
Expand Down

0 comments on commit b8e771a

Please sign in to comment.