Skip to content

Commit 63bf3c7

Browse files
committed
Fix update_org_cluster
1 parent a9186bc commit 63bf3c7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

neuro_admin_client/__init__.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ async def get_org_cluster(
443443
...
444444

445445
@abstractmethod
446-
async def update_org_cluster(self, org_cluster: OrgCluster) -> OrgCluster:
446+
async def update_org_cluster(self, org_cluster: OrgCluster) -> None:
447447
...
448448

449449
@abstractmethod
@@ -1394,7 +1394,7 @@ async def get_org_cluster(
13941394
raw_data = await resp.json()
13951395
return self._parse_org_cluster(cluster_name, raw_data)
13961396

1397-
async def update_org_cluster(self, org_cluster: OrgCluster) -> OrgCluster:
1397+
async def update_org_cluster(self, org_cluster: OrgCluster) -> None:
13981398
payload: dict[str, Any] = {
13991399
"org_name": org_cluster.org_name,
14001400
"quota": {},
@@ -1421,8 +1421,6 @@ async def update_org_cluster(self, org_cluster: OrgCluster) -> OrgCluster:
14211421
json=payload,
14221422
) as resp:
14231423
resp.raise_for_status()
1424-
raw_data = await resp.json()
1425-
return self._parse_org_cluster(org_cluster.cluster_name, raw_data)
14261424

14271425
async def delete_org_cluster(
14281426
self,
@@ -2226,8 +2224,8 @@ async def get_org_cluster(
22262224
) -> OrgCluster:
22272225
return self.DUMMY_ORG_CLUSTER
22282226

2229-
async def update_org_cluster(self, org_cluster: OrgCluster) -> OrgCluster:
2230-
return self.DUMMY_ORG_CLUSTER
2227+
async def update_org_cluster(self, org_cluster: OrgCluster) -> None:
2228+
pass
22312229

22322230
async def delete_org_cluster(
22332231
self,

0 commit comments

Comments
 (0)