This commit is contained in:
Joseph Schorr 2014-01-03 17:46:21 -05:00
commit 0ffd23e20e

View file

@ -10,7 +10,8 @@ for image in Image.select():
image_path = store.image_layer_path(image.repository.namespace,
image.repository.name,
image.docker_image_id)
size = store.get_size(image_path)
print 'Setting image %s size to: %s' % (image.docker_image_id, size)
image.image_size = size
image.save()
if store.exists(image_path):
size = store.get_size(image_path)
print 'Setting image %s size to: %s' % (image.docker_image_id, size)
image.image_size = size
image.save()