Skip to content

Commit

Permalink
lstrip quay.io if it accidentally appears in Docker image name
Browse files Browse the repository at this point in the history
Author: @mirpedrol
  • Loading branch information
adamrtalbot committed Apr 27, 2023
1 parent b9a5829 commit fc95246
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nf_core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,8 @@ def get_tag_date(tag_date):
docker_image = all_docker[k]["image"]
singularity_image = all_singularity[k]["image"]
current_date = date
return docker_image["image_name"], singularity_image["image_name"]
docker_image_name = docker_image["image_name"].lstrip("quay.io/")
return docker_image_name, singularity_image["image_name"]
except TypeError:
raise LookupError(f"Could not find docker or singularity container for {package}")
elif response.status_code != 404:
Expand Down

0 comments on commit fc95246

Please sign in to comment.