From 446888ef41a3d06b188d272b67441fc6779a53e0 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Wed, 21 Dec 2016 09:00:18 -0800 Subject: [PATCH] Switch from `iteritems` to `items` for py3. --- lib/ansible/modules/network/ldap_entry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/network/ldap_entry.py b/lib/ansible/modules/network/ldap_entry.py index e93c9e0603..593e197c25 100644 --- a/lib/ansible/modules/network/ldap_entry.py +++ b/lib/ansible/modules/network/ldap_entry.py @@ -184,7 +184,7 @@ class LdapEntry(object): """ Turn attribute's value to array. """ attrs = {} - for name, value in self.module.params['attributes'].iteritems(): + for name, value in self.module.params['attributes'].items(): if name not in attrs: attrs[name] = [] @@ -288,7 +288,7 @@ def main(): # Update module parameters with user's parameters if defined 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: module.params[key] = val else: