Skip to content

Commit 9f6e08e

Browse files
committed
Fix getting team from storage api sa
1 parent ee07475 commit 9f6e08e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

yepcode_run/api/yepcode_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def _team_id_from_client_id(self) -> str:
141141
raise ValueError("Client ID is not set")
142142

143143
if self.client_id.startswith("yc-storage-api-sa-"):
144-
return self.client_id.split("-")[3]
144+
return self.client_id.split("-")[4]
145145

146146
match = re.match(r"^sa-(.*)-[a-z0-9]{8}$", self.client_id)
147147
if not match:

0 commit comments

Comments
 (0)