Ensure image_format is mandatory

References #68
This commit is contained in:
Joshua Boniface 2020-02-09 20:45:43 -05:00
parent 1de57ab6f3
commit 1231ba19b7
1 changed files with 1 additions and 1 deletions

View File

@ -3337,7 +3337,7 @@ api.add_resource(API_Storage_Ceph_Volume_Element_Clone, '/storage/ceph/volume/<p
# /storage/ceph/volume/<pool>/<volume>/upload
class API_Storage_Ceph_Volume_Element_Upload(Resource):
@RequestParser([
{ 'name': 'image_format' }
{ 'name': 'image_format', 'required': True, 'helpmsg': "A source image format must be specified" }
])
@Authenticator
def post(self, pool, volume, reqargs):