summaryrefslogtreecommitdiffstats
path: root/share/newton_base/openoapi
diff options
context:
space:
mode:
authorHaibin Huang <haibin.huang@intel.com>2018-11-14 08:22:33 +0000
committerHaibin Huang <haibin.huang@intel.com>2018-11-14 09:39:32 +0000
commit458989f38849f5a2b2967a73a2160f5876faad71 (patch)
treebb9ae4c62b28db9a3128faeb26672ba07270d6e3 /share/newton_base/openoapi
parent69c7fffdcc22bc47a84775a7214b0495efa04baf (diff)
Modify openstack return code
Change-Id: Ic124a91704b4e61d94626855a3592a29bad51738 Issue-ID: MULTICLOUD-404 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
Diffstat (limited to 'share/newton_base/openoapi')
-rw-r--r--share/newton_base/openoapi/flavor.py2
1 files changed, 1 insertions, 1 deletions
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