summaryrefslogtreecommitdiffstats
path: root/share/newton_base/openoapi/flavor.py
diff options
context:
space:
mode:
Diffstat (limited to 'share/newton_base/openoapi/flavor.py')
-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