Skip to content

Commit

Permalink
fix: Disallow blank project
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Sep 18, 2024
1 parent 1529438 commit bc35ab6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ai/backend/manager/api/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ async def convert_session_to_image(
)

registry_hostname = project.container_registry["registry"]
registry_project = project.container_registry.get("project", "")
registry_project = project.container_registry["project"]

async with root_ctx.db.begin_readonly_session() as db_session:
query = (
Expand Down
2 changes: 1 addition & 1 deletion src/ai/backend/manager/models/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@

container_registry_iv = t.Dict({}) | t.Dict({
t.Key("registry"): t.String(),
t.Key("project"): t.String(allow_blank=True),
t.Key("project"): t.String(),
})


Expand Down

0 comments on commit bc35ab6

Please sign in to comment.