Merge pull request #666 from jzelinskie/fixbackfill

Copy new fields over to the linked image
This commit is contained in:
Jimmy Zelinskie 2015-10-19 17:18:06 -04:00
commit 2dea9cf05e

View file

@ -191,7 +191,12 @@ def _find_or_link_image(existing_image, repo_obj, username, translations, prefer
new_image = Image.create(docker_image_id=existing_image.docker_image_id, new_image = Image.create(docker_image_id=existing_image.docker_image_id,
repository=repo_obj, storage=copied_storage, repository=repo_obj, storage=copied_storage,
ancestors=new_image_ancestry) ancestors=new_image_ancestry,
command=existing_image.command,
created=existing_image.created,
comment=existing_image.comment,
aggregate_size=existing_image.aggregate_size)
logger.debug('Storing translation %s -> %s', existing_image.id, new_image.id) logger.debug('Storing translation %s -> %s', existing_image.id, new_image.id)
translations[existing_image.id] = new_image.id translations[existing_image.id] = new_image.id