allow ucloud-api to also be able work without ceph i.e use filesystem

This commit is contained in:
Ahmed Bilal 2019-09-07 12:38:58 +02:00
commit 08cbecebdb
4 changed files with 31 additions and 5 deletions

View file

@ -99,8 +99,10 @@ class CreateImageSchema(BaseSchema):
self.uuid: Field = Field("uuid", str, data.get("uuid", KeyError))
self.name = Field("name", str, data.get("name", KeyError))
self.image_store = Field("image_store", str, data.get("image_store", KeyError))
# Validations
self.uuid.validation = self.file_uuid_validation
self.image_store.validation = self.image_store_name_validation
# All Fields
fields = [self.uuid, self.name, self.image_store]