From cb9b07c174ede8e641daa8804ac54449b688967e Mon Sep 17 00:00:00 2001 From: Ignacio Heredia Date: Wed, 20 Nov 2024 09:50:26 +0100 Subject: [PATCH] fix: remove "hub" from Docker image metadata value It breaks OSCAR deployments. It's better that the dashboard adds that to the button. --- ai4papi/routers/v1/catalog/common.py | 1 - 1 file changed, 1 deletion(-) diff --git a/ai4papi/routers/v1/catalog/common.py b/ai4papi/routers/v1/catalog/common.py index f2c82e1..8a4267c 100644 --- a/ai4papi/routers/v1/catalog/common.py +++ b/ai4papi/routers/v1/catalog/common.py @@ -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