diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-01-17 16:00:49 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-01-17 16:00:50 +0000 |
| commit | c8228da023bb3bc2d7c6abe73311cc3ba78efdc6 (patch) | |
| tree | 8088c5498af5eafcf117103e3f14480725e8d523 | |
| parent | 8fd9e85ab6039ce16e0a3f05aed842074ec62eed (diff) | |
| parent | defd70cef9108ed186b35b02bdf56f71945d41fc (diff) | |
| download | kolla-c8228da023bb3bc2d7c6abe73311cc3ba78efdc6.tar.gz kolla-c8228da023bb3bc2d7c6abe73311cc3ba78efdc6.zip | |
Merge "Use dict.items() for adding Python 3 compatibility"
| -rwxr-xr-x | kolla/cmd/build.py | 4 | ||||
| -rw-r--r-- | kolla/common/config.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py index db417499b..e7c54a435 100755 --- a/kolla/cmd/build.py +++ b/kolla/cmd/build.py @@ -488,7 +488,7 @@ class KollaWorker(object): if self.image_statuses_bad: LOG.info("Images that failed to build") LOG.info("===========================") - for name, status in six.iteritems(self.image_statuses_bad): + for name, status in self.image_statuses_bad.items(): LOG.error('%s Failed with status: %s', name, status) if self.image_statuses_unmatched: @@ -583,7 +583,7 @@ class KollaWorker(object): for image in self.images: sort_images[image['fullname']] = image - for parent_name, parent in six.iteritems(sort_images): + for parent_name, parent in sort_images.items(): for image in sort_images.values(): if image['parent_name'] == parent_name: parent['children'].append(image) diff --git a/kolla/common/config.py b/kolla/common/config.py index 478d2a5d2..bc821e025 100644 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -240,7 +240,7 @@ def get_source_opts(type_=None, location=None, reference=None): def gen_all_source_opts(): - for name, params in SOURCES.iteritems(): + for name, params in SOURCES.items(): type_ = params['type'] location = params['location'] reference = params.get('reference') |
