1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Switch from iteritems to items for py3.

This commit is contained in:
Matt Clay 2016-12-21 09:00:18 -08:00
parent 0d06b77970
commit 446888ef41

View file

@ -184,7 +184,7 @@ class LdapEntry(object):
""" Turn attribute's value to array. """ """ Turn attribute's value to array. """
attrs = {} attrs = {}
for name, value in self.module.params['attributes'].iteritems(): for name, value in self.module.params['attributes'].items():
if name not in attrs: if name not in attrs:
attrs[name] = [] attrs[name] = []
@ -288,7 +288,7 @@ def main():
# Update module parameters with user's parameters if defined # Update module parameters with user's parameters if defined
if 'params' in module.params and isinstance(module.params['params'], dict): if 'params' in module.params and isinstance(module.params['params'], dict):
for key, val in module.params['params'].iteritems(): for key, val in module.params['params'].items():
if key in module.argument_spec: if key in module.argument_spec:
module.params[key] = val module.params[key] = val
else: else: