Skip to content

Commit b2a1e6d

Browse files
committed
Fix team_id extraction from client_id
1 parent 1343ad6 commit b2a1e6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

yepcode_run/api/yepcode_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ def _team_id_from_client_id(self) -> str:
140140
if not self.client_id:
141141
raise ValueError("Client ID is not set")
142142

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

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

0 commit comments

Comments
 (0)