sources/ldap: fix linting issues
This commit is contained in:
parent
7d107991a2
commit
005b4d8dda
|
@ -52,7 +52,9 @@ class MembershipLDAPSynchronizer(BaseLDAPSynchronizer):
|
||||||
|
|
||||||
def get_group(self, group_dict: dict[str, Any]) -> Optional[Group]:
|
def get_group(self, group_dict: dict[str, Any]) -> Optional[Group]:
|
||||||
"""Check if we fetched the group already, and if not cache it for later"""
|
"""Check if we fetched the group already, and if not cache it for later"""
|
||||||
group_uniq = group_dict.get("attributes", {}).get(self._source.object_uniqueness_field, "")
|
group_uniq = group_dict.get("attributes", {}).get(
|
||||||
|
self._source.object_uniqueness_field, ""
|
||||||
|
)
|
||||||
group_dn = group_dict.get("attributes", {}).get(LDAP_DISTINGUISHED_NAME, "")
|
group_dn = group_dict.get("attributes", {}).get(LDAP_DISTINGUISHED_NAME, "")
|
||||||
if group_uniq not in self.group_cache:
|
if group_uniq not in self.group_cache:
|
||||||
groups = Group.objects.filter(
|
groups = Group.objects.filter(
|
||||||
|
|
Reference in a new issue