Add additional assertions and further checks in storage code
This commit is contained in:
parent
6b30702699
commit
693e47e063
3 changed files with 8 additions and 2 deletions
|
@ -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}
|
||||
|
|
Reference in a new issue