From 458989f38849f5a2b2967a73a2160f5876faad71 Mon Sep 17 00:00:00 2001 From: Haibin Huang Date: Wed, 14 Nov 2018 08:22:33 +0000 Subject: Modify openstack return code Change-Id: Ic124a91704b4e61d94626855a3592a29bad51738 Issue-ID: MULTICLOUD-404 Signed-off-by: Haibin Huang --- share/newton_base/openoapi/flavor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/newton_base') diff --git a/share/newton_base/openoapi/flavor.py b/share/newton_base/openoapi/flavor.py index b0a6bf6c..8dcd10f6 100644 --- a/share/newton_base/openoapi/flavor.py +++ b/share/newton_base/openoapi/flavor.py @@ -232,7 +232,7 @@ class Flavors(APIView): extra_specs_vfc = request.data.pop("extraSpecs", None) #create flavor first resp = self._create_flavor(sess, request) - if resp.status_code == 202: + if resp.status_code == 200: resp_body = resp.json()["flavor"] else: return resp -- cgit 1.2.3-korg