Skip to content

Commit

Permalink
fix: remove "hub" from Docker image metadata value
Browse files Browse the repository at this point in the history
It breaks OSCAR deployments. It's better that the dashboard adds that to the button.
  • Loading branch information
IgnacioHeredia committed Nov 20, 2024
1 parent a0732e8 commit cb9b07c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ai4papi/routers/v1/catalog/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ def get_metadata(
# Add DockerHub
# TODO: when the migration is finished, we have to generate the url from the module name
# (ie. ignore the value coming from the metadata)
metadata['links']['docker_image'] = f"https://hub.docker.com/r/{metadata['links']['docker_image']}"
metadata['links']['docker_image'] = metadata['links']['docker_image'].strip('/ ')

return metadata
Expand Down

0 comments on commit cb9b07c

Please sign in to comment.