Fix bug with json.dumps
changing the order of keys
We write the literal received JSON string into the image data, to ensure the checksums computed will always match
This commit is contained in:
parent
8985d8f106
commit
9474fb7833
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ class _ManifestBuilder(object):
|
||||||
model.image.set_image_metadata(layer_id, namespace_name, repo_name,
|
model.image.set_image_metadata(layer_id, namespace_name, repo_name,
|
||||||
v1_metadata.get('created'),
|
v1_metadata.get('created'),
|
||||||
v1_metadata.get('comment'),
|
v1_metadata.get('comment'),
|
||||||
command, json.dumps(v1_metadata),
|
command, v1_metadata_string,
|
||||||
parent=parent_image)
|
parent=parent_image)
|
||||||
|
|
||||||
# Save the changes to the builder.
|
# Save the changes to the builder.
|
||||||
|
|
Reference in a new issue