summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2018-11-27 12:44:32 +0000
committerGerrit Code Review <gerrit@onap.org>2018-11-27 12:44:32 +0000
commit5bd723cc3c63db00dd96e0f7436c2932e8f3cf32 (patch)
tree0ecf70f607cb32523ec0b83c41e49bc5d652a204 /share
parent2210a55a7107937116c20f3b1175944083df9635 (diff)
parente16d8905080997f903dcbb014554c8783f6b6dd2 (diff)
Merge "Modify openstack return code" into casablanca
Diffstat (limited to 'share')
-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