From 8469ea93d94dfd3b7f6e3ce78004350fb610c82b Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 4 Jan 2017 17:39:34 -0800 Subject: [PATCH] Remove unnecessary use of iteritems so that this compiles under python3 --- lib/ansible/modules/packaging/pulp_repo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/packaging/pulp_repo.py b/lib/ansible/modules/packaging/pulp_repo.py index 580de2d4c2..5a0b558af8 100644 --- a/lib/ansible/modules/packaging/pulp_repo.py +++ b/lib/ansible/modules/packaging/pulp_repo.py @@ -217,7 +217,7 @@ class pulp_server(object): repo_config = self.get_repo_config_by_id(repo_id) for distributor in repo_config['distributors']: - for key, value in kwargs.iteritems(): + for key, value in kwargs.items(): if not distributor['config'][key] == value: return False @@ -227,7 +227,7 @@ class pulp_server(object): repo_config = self.get_repo_config_by_id(repo_id) for importer in repo_config['importers']: - for key, value in kwargs.iteritems(): + for key, value in kwargs.items(): if value is not None: if key not in importer['config'].keys(): return False @@ -411,7 +411,7 @@ class pulp_server(object): data = dict() data['distributor_config'] = dict() - for key, value in kwargs.iteritems(): + for key, value in kwargs.items(): data['distributor_config'][key] = value response, info = fetch_url( @@ -432,7 +432,7 @@ class pulp_server(object): data = dict() importer_config = dict() - for key, value in kwargs.iteritems(): + for key, value in kwargs.items(): if value is not None: importer_config[key] = value