Skip to content

Commit

Permalink
Merge pull request #15 from stuvusIT/fix/userEP
Browse files Browse the repository at this point in the history
fix(userEP): Use mail attribute instead of tuple of uid and mail
  • Loading branch information
neumantm authored Jan 24, 2024
2 parents 27ddc62 + fc7bf4f commit 9015f13
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 9015f13

Please sign in to comment.