diff --git a/heatclient/tests/functional/osc/v1/base.py b/heatclient/tests/functional/osc/v1/base.py index cb10cb7c..aadf4199 100644 --- a/heatclient/tests/functional/osc/v1/base.py +++ b/heatclient/tests/functional/osc/v1/base.py @@ -48,7 +48,7 @@ class OpenStackClientTestBase(base.ClientTestBase): items = self.parser.listing(output) for item in items: obj[item['Field']] = six.text_type(item['Value']) - return dict((self._key_name(k), v) for k, v in obj.iteritems()) + return dict((self._key_name(k), v) for k, v in six.iteritems(obj)) def _key_name(self, key): return key.lower().replace(' ', '_') @@ -60,7 +60,7 @@ class OpenStackClientTestBase(base.ClientTestBase): if item['ID'] == id: obj = item break - return dict((self._key_name(k), v) for k, v in obj.iteritems()) + return dict((self._key_name(k), v) for k, v in six.iteritems(obj)) def _stack_create(self, name, template, parameters=[], wait=True): cmd = 'stack create ' + name