summaryrefslogtreecommitdiffstats
path: root/share/newton_base/openoapi
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-08-27 03:52:08 +0000
committerBin Yang <bin.yang@windriver.com>2019-08-27 04:50:43 +0000
commit7a31c2e438da2d165f473f7428cee7d2164312df (patch)
treeace10c3428b58f2d8d2066978964ed80478279d6 /share/newton_base/openoapi
parent4a42f215d7009fc825bbff5b120913f21660ee59 (diff)
Fix py3 related issue
Change-Id: I2b21aaab2cbf0df11b9940bf62585294dd1ce576 Issue-ID: MULTICLOUD-774 Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'share/newton_base/openoapi')
-rw-r--r--share/newton_base/openoapi/flavor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/newton_base/openoapi/flavor.py b/share/newton_base/openoapi/flavor.py
index 8809e83b..eac34edd 100644
--- a/share/newton_base/openoapi/flavor.py
+++ b/share/newton_base/openoapi/flavor.py
@@ -49,7 +49,7 @@ class Flavors(APIView):
for spec in extra_specs_vfc:
extra_specs_openstack[spec['keyName']] = spec['value']
else:
- for k,v in extra_specs_openstack.items():
+ for k,v in list(extra_specs_openstack.items()):
spec={}
spec['keyName']=k
spec['value']=v
@@ -370,7 +370,7 @@ class Flavors(APIView):
resp = self._get_flavor_extra_specs(sess, flavorid)
extra_specs = resp.json()
if extra_specs and extra_specs["extra_specs"]:
- for k, _ in extra_specs["extra_specs"].items():
+ for k, _ in list(extra_specs["extra_specs"].items()):
# just try to delete extra spec, but do not care if succeeded
self._delete_flavor_one_extra_spec(sess, flavorid, k)
return resp