Skip to content

Commit

Permalink
Fix update_org_cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
romasku committed Jan 11, 2022
1 parent a9186bc commit 63bf3c7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions neuro_admin_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ async def get_org_cluster(
...

@abstractmethod
async def update_org_cluster(self, org_cluster: OrgCluster) -> OrgCluster:
async def update_org_cluster(self, org_cluster: OrgCluster) -> None:
...

@abstractmethod
Expand Down Expand Up @@ -1394,7 +1394,7 @@ async def get_org_cluster(
raw_data = await resp.json()
return self._parse_org_cluster(cluster_name, raw_data)

async def update_org_cluster(self, org_cluster: OrgCluster) -> OrgCluster:
async def update_org_cluster(self, org_cluster: OrgCluster) -> None:
payload: dict[str, Any] = {
"org_name": org_cluster.org_name,
"quota": {},
Expand All @@ -1421,8 +1421,6 @@ async def update_org_cluster(self, org_cluster: OrgCluster) -> OrgCluster:
json=payload,
) as resp:
resp.raise_for_status()
raw_data = await resp.json()
return self._parse_org_cluster(org_cluster.cluster_name, raw_data)

async def delete_org_cluster(
self,
Expand Down Expand Up @@ -2226,8 +2224,8 @@ async def get_org_cluster(
) -> OrgCluster:
return self.DUMMY_ORG_CLUSTER

async def update_org_cluster(self, org_cluster: OrgCluster) -> OrgCluster:
return self.DUMMY_ORG_CLUSTER
async def update_org_cluster(self, org_cluster: OrgCluster) -> None:
pass

async def delete_org_cluster(
self,
Expand Down

0 comments on commit 63bf3c7

Please sign in to comment.