From d45975051d5f267a1a412c99dc8de6dbff3342e0 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 28 Sep 2015 15:44:18 -0400 Subject: [PATCH] Fix registry V1 push test --- test/registry_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)