Skip to content

Commit

Permalink
don't change dict during iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
yogo1212 committed Jan 21, 2019
1 parent bc6e403 commit 67d16f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/usersdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ def expand_users(self):
# 1- Check for extra keys that dont translate to ansible user module
if self.extract_extra_keys:
extra_user_data = None
for dic_key in user_options.keys():
user_options_keys = list(user_options.keys())
for dic_key in user_options_keys:
if dic_key not in USERVALUES:
# Add user and state
if not extra_user_data:
Expand Down

0 comments on commit 67d16f4

Please sign in to comment.