Merge pull request #34223 from peterdemin/bugfix-eauth-ldap-expanding

Fixed typo in filtering LDAP's potential_ous
This commit is contained in:
Mike Place 2016-06-23 10:26:31 -07:00 committed by GitHub
commit 0a0267149f

View file

@ -963,7 +963,7 @@ class CkMinions(object):
for item in auth_list:
if isinstance(item, six.string_types):
continue
ou_names.append([potential_ou for potential_ou in item.keys() if potential_ou.startswith('ldap(')])
ou_names.extend([potential_ou for potential_ou in item.keys() if potential_ou.startswith('ldap(')])
if ou_names:
auth_list = salt.auth.ldap.expand_ldap_entries(auth_list, opts)
return auth_list