Skip to content

Commit

Permalink
RSDK-5983: await get_org_id in list_keys (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
purplenicole730 authored Dec 27, 2023
1 parent 63c03d8 commit e898a6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/viam/app/app_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,7 @@ async def list_keys(self) -> List[APIKeyWithAuthorizations]:
Returns:
List[viam.proto.app.APIKeyWithAuthorizations]: The existing API keys and authorizations."""
org_id = self._get_organization_id()
org_id = await self._get_organization_id()
request = ListKeysRequest(org_id=org_id)
response: ListKeysResponse = await self._app_client.ListKeys(request, metadata=self._metadata)
return response.api_keys
return [key for key in response.api_keys]

0 comments on commit e898a6c

Please sign in to comment.