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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ def deepclean(
    # 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.
    images_by_name = {
        name.split(":")[0]: []
        docker.utils.parse_repository_tag(name)[0]: []
        for image in images.values()
        for name in image.tags
    }