diff --git a/cinder/api/contrib/types_extra_specs.py b/cinder/api/contrib/types_extra_specs.py index 26bc1faedc8..cc169144edf 100644 --- a/cinder/api/contrib/types_extra_specs.py +++ b/cinder/api/contrib/types_extra_specs.py @@ -56,7 +56,7 @@ class VolumeTypeExtraSpecsController(wsgi.Controller): def _get_extra_specs(self, context, type_id): extra_specs = db.volume_type_extra_specs_get(context, type_id) specs_dict = {} - for key, value in extra_specs.iteritems(): + for key, value in extra_specs.items(): specs_dict[key] = value return dict(extra_specs=specs_dict) diff --git a/tests-py3.txt b/tests-py3.txt index 22559d67bac..d3c57becceb 100644 --- a/tests-py3.txt +++ b/tests-py3.txt @@ -1,3 +1,15 @@ +cinder.tests.unit.api.contrib.test_availability_zones +cinder.tests.unit.api.contrib.test_capabilities +cinder.tests.unit.api.contrib.test_extended_snapshot_attributes +cinder.tests.unit.api.contrib.test_hosts +cinder.tests.unit.api.contrib.test_qos_specs_manage +cinder.tests.unit.api.contrib.test_quotas +cinder.tests.unit.api.contrib.test_quotas_classes +cinder.tests.unit.api.contrib.test_scheduler_stats +cinder.tests.unit.api.contrib.test_services +cinder.tests.unit.api.contrib.test_types_extra_specs +cinder.tests.unit.api.contrib.test_types_manage +cinder.tests.unit.api.contrib.test_used_limits cinder.tests.unit.api.openstack.test_wsgi cinder.tests.unit.api.test_common cinder.tests.unit.api.test_extensions