diff --git a/test/registry_tests.py b/test/registry_tests.py index a59074142..9d1d03d68 100644 --- a/test/registry_tests.py +++ b/test/registry_tests.py @@ -218,7 +218,7 @@ class V1RegistryPushMixin(V1RegistryMixin): self.v1_ping() # PUT /v1/repositories/{namespace}/{repository}/ - data = [{"id": image['id']} for image in images] + data = [{"id": image_id} for image_id, _ in images.iteritems()] self.conduct('PUT', '/v1/repositories/%s/%s' % (namespace, repository), data=json.dumps(data), auth=auth, expected_code=201)