Add additional assertions and further checks in storage code

This commit is contained in:
Joseph Schorr 2019-02-20 12:05:21 -05:00
parent 6b30702699
commit 693e47e063
3 changed files with 8 additions and 2 deletions

View file

@ -189,7 +189,7 @@ def garbage_collect_storage(storage_id_whitelist):
def create_v1_storage(location_name):
storage = ImageStorage.create(cas_path=False)
storage = ImageStorage.create(cas_path=False, uploading=True)
location = get_image_location_for_name(location_name)
ImageStoragePlacement.create(location=location.id, storage=storage)
storage.locations = {location_name}