def __is_in_group(self, uid, group_dn):
        """Check if user is in group"""
        if not self.__user_exists(uid):
            raise exception.LDAPUserNotFound(user_id=uid)
        if not self.__group_exists(group_dn):
            return False
        res = self.__find_object(group_dn,
                                 self.__uid_to_dn(uid) % '(member=%s)',
                                 self.ldap.SCOPE_BASE)
        return res is not None
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/auth/ldapdriver.py/LdapDriver.__is_in_group/swapped operands of `%`