fix bug where v1 backfill never completed

This commit is contained in:
Jimmy Zelinskie 2015-11-10 14:01:28 -05:00
parent a33077b978
commit 112bef8f8c

View file

@ -104,8 +104,8 @@ def backfill_v1_metadata():
try:
data = storage.get_content(repo_image.storage.locations, json_path)
except IOError:
data = None
logger.exception('failed to find v1 metadata, defaulting to None')
data = "{}"
logger.warning('failed to find v1 metadata, defaulting to {}')
repo_image.v1_json_metadata = data
repo_image.save()
except ImageStoragePlacement.DoesNotExist: