This commit is contained in:
Mircea Ulinic 2017-01-17 14:14:54 +00:00
parent 6663107021
commit b3388f7162

View file

@ -111,8 +111,8 @@ def _compute_diff(configured, expected):
remove_usernames = configured_users - expected_users
common_usernames = expected_users & configured_users
add = dict((username, expected.get(username)) for (username, _) in add_usernames)
remove = dict((username, configured.get(username)) for (username, _) in remove_usernames)
add = dict((username, expected.get(username)) for username in add_usernames)
remove = dict((username, configured.get(username)) for username in remove_usernames)
update = {}
for username in common_usernames: