Skip to content

Commit

Permalink
Pin neuro-admin-client to >=22.6.4 (#2757)
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov authored Jun 28, 2022
1 parent 7b2c0c4 commit a007c63
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.D/2757.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pin `neuro-admin-client` to `>=22.6.4`, make SDK future-compatible with next `neuro-admin-client` releases.
5 changes: 4 additions & 1 deletion neuro-cli/src/neuro_cli/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,9 @@ async def add_org_cluster(
Add org access to specified cluster.
"""
if storage_size:
storage_size *= 1000 * 1000

org_cluster = await root.client._admin.create_org_cluster(
cluster_name=cluster_name,
org_name=org_name,
Expand All @@ -1327,7 +1330,7 @@ async def add_org_cluster(
default_credits=_parse_credits_value(default_credits),
default_quota=_Quota(_parse_jobs_value(default_jobs)),
default_role=_ClusterUserRoleType(default_role),
storage_size_mb=storage_size,
storage_size=storage_size,
)
if not root.quiet:
root.print(
Expand Down
2 changes: 1 addition & 1 deletion neuro-sdk/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ install_requires =
google-auth>=2.0.2
importlib-metadata>=4.7.1; python_version<"3.10"
packaging>=20.4
neuro-admin-client==22.6.4
neuro-admin-client>=22.6.4

[options.packages.find]
where=src
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ install_requires =
google-auth>=2.0.2
importlib-metadata>=4.7.1; python_version<"3.10"
packaging>=20.4
neuro-admin-client==22.6.4
neuro-admin-client>=22.6.4

[options.packages.find]
where=src
Expand Down

0 comments on commit a007c63

Please sign in to comment.