[sysadmin-bin] iteritems --> items



commit db65a58c1ab466899124bda5067e22e301e62549
Author: Andrea Veri <averi redhat com>
Date:   Thu Nov 12 19:22:21 2020 +0100

    iteritems --> items

 gitlab/gitlab-operations.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gitlab/gitlab-operations.py b/gitlab/gitlab-operations.py
index f9907bd..c29b92e 100755
--- a/gitlab/gitlab-operations.py
+++ b/gitlab/gitlab-operations.py
@@ -42,7 +42,7 @@ for person in gnomeusers:
         if user.attributes['identities'][index]['provider'] == 'ldapmain':
             gnomeusers_dict[user.attributes['identities'][index]['extern_uid'].split(',')[0].replace('uid=', 
'')] = user.attributes['id']
 
-for username, id in ldapusers_dict.iteritems():
+for username, id in ldapusers_dict.items():
     ssh_key = glu.get_attributes_from_ldap(username, 'ipaSshPubKey')
 
     if ssh_key is not None:
@@ -79,7 +79,7 @@ for username, id in ldapusers_dict.iteritems():
             if e.response_code == 409:
                 pass
 
-for username, id in gnomeusers_dict.iteritems():
+for username, id in gnomeusers_dict.items():
     if username not in gnomecvs_members:
         # Hardcode the list of GNOME group owners here
         if username in gnomecvs_exceptions:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]