From a7b3b0e53f30eca2e4a70f0e02be8b32b9335209 Mon Sep 17 00:00:00 2001 From: clabbe Date: Fri, 4 Mar 2016 11:00:02 +1100 Subject: [PATCH] Fix https://github.com/realestate-com-au/tagfish/issues/2 The structure of the manifest has changed see https://github.com/docker/distribution/blob/master/docs/spec/api.md#pulling-an-image-manifest All the layers hashes are returned for every manifest, so instead of comparing the only hash, we compare the all table of hashes. --- lib/tagfish/docker_registry_v2_client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tagfish/docker_registry_v2_client.rb b/lib/tagfish/docker_registry_v2_client.rb index 9109665..72485d9 100644 --- a/lib/tagfish/docker_registry_v2_client.rb +++ b/lib/tagfish/docker_registry_v2_client.rb @@ -35,7 +35,7 @@ def tags_logic end tags_with_hashes = tag_names.inject({}) do |dict, tag| - dict[tag] = hash(tag)["fsLayers"][0]["blobSum"] + dict[tag] = hash(tag)["fsLayers"] dict end end