Skip to content

Commit

Permalink
fix(userEP): Use mail attribute instead of tuple of uid and mail
Browse files Browse the repository at this point in the history
This bug was introduced in #14 by changing the signature of the called method.
  • Loading branch information
neumantm committed Jan 22, 2024
1 parent 27ddc62 commit fc7bf4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mail_alias_creator/entry_processors/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def process(self, alias_address_provider):
"""Process."""
logger.debug("Processing user EP with {}".format(self.user))
from ..main import LDAP
mail = LDAP.get_user_primary_mails([self.user])[0]
mail = LDAP.get_user_primary_mails([self.user])[0][1]
if mail is None:
logger.error("User {} does not exist or has no primary mail.".format(self.user))
if CONFIG["main"].getboolean("strict"):
Expand Down

0 comments on commit fc7bf4f

Please sign in to comment.