From bc6e403eb1dadf6a5fe701e93df439ce0c9a14fc Mon Sep 17 00:00:00 2001 From: "Leon M. George" Date: Fri, 13 Jul 2018 23:56:24 +0200 Subject: [PATCH] replace deprecated iteritems --- library/load_user_files.py | 2 +- library/usersdb.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/load_user_files.py b/library/load_user_files.py index 0063b5b..4a73041 100644 --- a/library/load_user_files.py +++ b/library/load_user_files.py @@ -86,7 +86,7 @@ def convert_chef_user_data_bag(self, data): new_data.update({ansible_key: data_bag_item_value}) if self.extract_extra_keys: - for key, value in data.iteritems(): + for key, value in data.items(): new_data.update({key: value}) # Check for an action chef_action = new_data.get("state", False) diff --git a/library/usersdb.py b/library/usersdb.py index 8e214eb..643eb69 100644 --- a/library/usersdb.py +++ b/library/usersdb.py @@ -203,7 +203,7 @@ def expand_users(self): :return: """ - for username, user_options in self.users_db.iteritems(): + for username, user_options in self.users_db.items(): # Check if usermanage_selected_users is set, and exclude users if self.selected_users: