Fix registry test due to recent name change

This commit is contained in:
Joseph Schorr 2018-11-21 18:05:40 +02:00
parent ffd567e2c2
commit 6207bb5e6f

View file

@ -530,7 +530,9 @@ class V2Protocol(RegistryProtocol):
manifest = parse_manifest_from_bytes(response.text, response.headers['Content-Type'])
manifests[tag_name] = manifest
image_ids[tag_name] = manifest.leaf_layer_v1_image_id
if manifest.schema_version == 1:
image_ids[tag_name] = manifest.leaf_layer_v1_image_id
# Verify the layers.
for index, layer in enumerate(manifest.layers):