mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Merge pull request #38778 from cloudflare/fix-38775
Fix "Error using napalm netusers"
This commit is contained in:
commit
bb6291d93a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user