Skip to content

Commit e898a6c

Browse files
RSDK-5983: await get_org_id in list_keys (#509)
1 parent 63c03d8 commit e898a6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/viam/app/app_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ async def list_keys(self) -> List[APIKeyWithAuthorizations]:
14441444
14451445
Returns:
14461446
List[viam.proto.app.APIKeyWithAuthorizations]: The existing API keys and authorizations."""
1447-
org_id = self._get_organization_id()
1447+
org_id = await self._get_organization_id()
14481448
request = ListKeysRequest(org_id=org_id)
14491449
response: ListKeysResponse = await self._app_client.ListKeys(request, metadata=self._metadata)
1450-
return response.api_keys
1450+
return [key for key in response.api_keys]

0 commit comments

Comments
 (0)