Fixing vault-add-member to be compatible with py3

Changing from iteritems() to values() in order to be compatible with
python3.

https://pagure.io/freeipa/issue/7373

Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Felipe Barreto 2018-01-24 14:44:39 -02:00 committed by Christian Heimes
parent e1e3218270
commit c8ba9eb0e6

View File

@ -238,7 +238,7 @@ class VaultModMember(LDAPModMember):
return super(VaultModMember, self).get_member_dns(**options)
def post_callback(self, ldap, completed, failed, dn, entry_attrs, *keys, **options):
for fail in failed.itervalues():
for fail in failed.values():
fail['services'] = fail.pop('service', [])
self.obj.get_container_attribute(entry_attrs, options)
return completed, dn