mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
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:
parent
927c5fbe43
commit
778b315add
@ -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])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user