Move the creation of images to when the JSON is uploaded.

This commit is contained in:
Jake Moshenko 2015-02-13 16:28:45 -05:00
parent 3cae6609a7
commit 59b794dd61
3 changed files with 12 additions and 33 deletions

View file

@ -1628,8 +1628,6 @@ def garbage_collect_repository(namespace_name, repository_name):
logger.info('Garbage collecting storage for images: %s', to_remove)
_garbage_collect_storage(storage_id_whitelist)
return len(to_remove)
def _garbage_collect_storage(storage_id_whitelist):
if len(storage_id_whitelist) == 0: