From 1231ba19b77d18ab983dab18a6608faa05811c52 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 9 Feb 2020 20:45:43 -0500 Subject: [PATCH] Ensure image_format is mandatory References #68 --- api-daemon/pvcapid/flaskapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-daemon/pvcapid/flaskapi.py b/api-daemon/pvcapid/flaskapi.py index 53829075..7c481e46 100755 --- a/api-daemon/pvcapid/flaskapi.py +++ b/api-daemon/pvcapid/flaskapi.py @@ -3337,7 +3337,7 @@ api.add_resource(API_Storage_Ceph_Volume_Element_Clone, '/storage/ceph/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):