Skip to content

Commit

Permalink
Revert conda-store to v0.4.14, #2028 (#2074)
Browse files Browse the repository at this point in the history
  • Loading branch information
iameskild committed Oct 19, 2023
1 parent ee1b4c9 commit 452de56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/_nebari/constants.py
Expand Up @@ -15,7 +15,7 @@
DEFAULT_NEBARI_IMAGE_TAG = CURRENT_RELEASE
DEFAULT_NEBARI_WORKFLOW_CONTROLLER_IMAGE_TAG = CURRENT_RELEASE

DEFAULT_CONDA_STORE_IMAGE_TAG = "2023.9.2"
DEFAULT_CONDA_STORE_IMAGE_TAG = "v0.4.14"

LATEST_SUPPORTED_PYTHON_VERSION = "3.10"

Expand Down
Expand Up @@ -132,13 +132,12 @@ async def authenticate(self, request):
namespaces.add(group_name)
role_bindings[f"{group_name}/*"] = roles

conda_store = await get_conda_store(request)
with conda_store.session_factory() as db:
for namespace in namespaces:
_namespace = api.get_namespace(db, name=namespace)
if _namespace is None:
db.add(orm.Namespace(name=namespace))
db.commit()
conda_store = get_conda_store(request)
for namespace in namespaces:
_namespace = api.get_namespace(conda_store.db, name=namespace)
if _namespace is None:
conda_store.db.add(orm.Namespace(name=namespace))
conda_store.db.commit()

return schema.AuthenticationToken(
primary_namespace=username,
Expand Down

0 comments on commit 452de56

Please sign in to comment.