Skip to content
Snippets Groups Projects
Commit 2fd158df authored by nimrod's avatar nimrod
Browse files

Use the Docker's SDK repository name parser.

Intead of my worst implementation.
parent 1722ad0d
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ def deepclean( ...@@ -92,7 +92,7 @@ def deepclean(
# First we build a dictionary with the image name as key and the value is # First we build a dictionary with the image name as key and the value is
# an empty list that later will contain the images that have that name. # an empty list that later will contain the images that have that name.
images_by_name = { images_by_name = {
name.split(":")[0]: [] docker.utils.parse_repository_tag(name)[0]: []
for image in images.values() for image in images.values()
for name in image.tags for name in image.tags
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment