Missed some Image.image_id instances.

This commit is contained in:
yackob03 2013-10-01 17:23:44 -04:00
parent fb91fb98da
commit a7537ba621

View file

@ -27,7 +27,7 @@ def get_tags(namespace, repository):
if permission.can() or model.repository_is_public(namespace, repository):
tags = model.list_repository_tags(namespace, repository)
tag_map = {tag.name: tag.image.image_id for tag in tags}
tag_map = {tag.name: tag.image.docker_image_id for tag in tags}
return jsonify(tag_map)
abort(403)
@ -42,7 +42,7 @@ def get_tag(namespace, repository, tag):
if permission.can() or model.repository_is_public(namespace, repository):
tag_image = model.get_tag_image(namespace, repository, tag)
response = make_response(tag_image.image_id, 200)
response = make_response(tag_image.docker_image_id, 200)
abort(403)
@ -55,8 +55,8 @@ def put_tag(namespace, repository, tag):
permission = ModifyRepositoryPermission(namespace, repository)
if permission.can():
image_id = json.loads(request.data)
model.create_or_update_tag(namespace, repository, tag, image_id)
docker_image_id = json.loads(request.data)
model.create_or_update_tag(namespace, repository, tag, docker_image_id)
return make_response('Created', 200)