Stop writing to deprecated columns for image data.
This commit is contained in:
parent
6bf2ddb762
commit
9da64f3aba
9 changed files with 13 additions and 39 deletions
|
@ -521,16 +521,11 @@ def put_image_json(namespace, repository, image_id):
|
|||
model.image.set_image_metadata(image_id, namespace, repository, data.get('created'),
|
||||
data.get('comment'), command, v1_metadata, parent_image)
|
||||
|
||||
logger.debug('Putting json path')
|
||||
uuid = repo_image.storage.uuid
|
||||
json_path = store.image_json_path(uuid)
|
||||
store.put_content(repo_image.storage.locations, json_path, request.data)
|
||||
|
||||
logger.debug('Generating image ancestry')
|
||||
|
||||
try:
|
||||
generate_ancestry(image_id, uuid, repo_image.storage.locations, parent_id, parent_uuid,
|
||||
parent_locations)
|
||||
generate_ancestry(image_id, repo_image.storage.uuid, repo_image.storage.locations, parent_id,
|
||||
parent_uuid, parent_locations)
|
||||
except IOError as ioe:
|
||||
logger.debug('Error when generating ancestry: %s', ioe.message)
|
||||
abort(404)
|
||||
|
|
Reference in a new issue