From 82448719ad61d19e07909ca711371ac379be9ed6 Mon Sep 17 00:00:00 2001 From: chenzuoqing Date: Tue, 28 Dec 2021 19:42:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E7=8A=B6=E6=80=81=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controller/asset/instance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controller/asset/instance.py b/src/controller/asset/instance.py index 3cc14f9..929c346 100644 --- a/src/controller/asset/instance.py +++ b/src/controller/asset/instance.py @@ -26,6 +26,7 @@ class InstanceParse: self.request_parse = reqparse.RequestParser() self.request_parse.add_argument("name", required=required, type=str, location='json') self.request_parse.add_argument("class_name", required=False, type=str, location='json') + self.request_parse.add_argument("status", location='json', choices=Instance.STATUS.keys()) self.request_parse.add_argument("server", required=False, type=str, location='json') self.request_parse.add_argument("dependents", required=False, type=list, location='json')