Reverted PR#45859 breaking the test

Because I don't understand how that PR works at all.
I've opened discussion with the author I'll return it back in a proper
way after we'll figure out how it should work.
This commit is contained in:
Dmitry Kuzmenko 2018-03-20 17:05:15 +03:00
parent 927c5fbe43
commit 778b315add
No known key found for this signature in database
GPG Key ID: 4C7CAD30C95651DA

View File

@ -361,7 +361,7 @@ def groups(username, **kwargs):
[salt.utils.stringutils.to_str(_config('accountattributename')), str('cn')]) # future lint: disable=blacklisted-function
for entry, result in search_results:
for user in result[_config('accountattributename'), _config('groupattribute')]:
for user in result[_config('accountattributename')]:
if username == salt.utils.stringutils.to_unicode(user).split(',')[0].split('=')[-1]:
group_list.append(entry.split(',')[0].split('=')[-1])