Move size and checksum updates into the metadata call

This commit is contained in:
Joseph Schorr 2014-09-23 15:49:28 -04:00
parent 74e35f917e
commit ec484e3efc
3 changed files with 8 additions and 11 deletions

View file

@ -81,7 +81,7 @@ def __create_subtree(repo, structure, creator_username, parent):
command = json.dumps(command_list) if command_list else None
new_image = model.set_image_metadata(docker_image_id, repo.namespace,
repo.name, str(creation_time),
'no comment', command, parent)
'no comment', command, 0, parent)
model.set_image_size(docker_image_id, repo.namespace, repo.name,
random.randrange(1, 1024 * 1024 * 1024))