Skip to content

Commit

Permalink
replace deprecated iteritems
Browse files Browse the repository at this point in the history
  • Loading branch information
yogo1212 committed Jan 21, 2019
1 parent e9ae542 commit bc6e403
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/load_user_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion library/usersdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bc6e403

Please sign in to comment.