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
|
@ -11,6 +11,11 @@ from data import model
|
|||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def image_json_path(storage_uuid):
|
||||
base_path = storage.image_path(storage_uuid)
|
||||
return '{0}json'.format(base_path)
|
||||
|
||||
|
||||
def backfill_v1_metadata():
|
||||
""" Copies metadata from image storages to their images. """
|
||||
logger.debug('Image v1 metadata backfill: Began execution')
|
||||
|
@ -48,7 +53,7 @@ def backfill_v1_metadata():
|
|||
|
||||
repo_image = repo_image_list[0]
|
||||
uuid = repo_image.storage.uuid
|
||||
json_path = storage.image_json_path(uuid)
|
||||
json_path = image_json_path(uuid)
|
||||
|
||||
logger.debug('Updating image: %s from: %s', repo_image.id, json_path)
|
||||
try:
|
||||
|
|
Reference in a new issue