Merge pull request #38778 from cloudflare/fix-38775

Fix "Error using napalm netusers"
This commit is contained in:
Mike Place 2017-01-17 08:20:26 -07:00 committed by GitHub
commit bb6291d93a

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: