Fix initdb to put proper JSON into the v1_metadata

This commit is contained in:
Joseph Schorr 2015-09-28 15:56:24 -04:00
parent acac893495
commit d870ae4ec4

View file

@ -109,7 +109,7 @@ def __create_subtree(repo, structure, creator_username, parent, tag_map):
new_image = model.image.set_image_metadata(docker_image_id, repo.namespace_user.username,
repo.name, str(creation_time), 'no comment', command,
v1_metadata, parent)
json.dumps(v1_metadata), parent)
compressed_size = random.randrange(1, 1024 * 1024 * 1024)
model.image.set_image_size(docker_image_id, repo.namespace_user.username, repo.name,