Skip to content

Commit

Permalink
fix reference to be local for send_email
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertSnows committed Mar 7, 2025
1 parent 7cc2af2 commit 3e63c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fence/scripting/google_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ def _send_emails_informing_service_account_removal(
for reason in removal_reasons:
content += "\n\t\t\t - {}".format(reason)

return fence.config.send_email(from_email, to_emails, subject, content, domain)
return send_email(from_email, to_emails, subject, content, domain)


def _get_users_without_access(db, auth_ids, user_emails, check_linking):
Expand Down Expand Up @@ -612,7 +612,7 @@ def email_user_without_access(user_email, projects, google_project_id):
text = config["PROBLEM_USER_EMAIL_NOTIFICATION"]["content"]
content = text.format(google_project_id, ",".join(projects))

return fence.config.send_email(from_email, to_emails, subject, content, domain)
return send_email(from_email, to_emails, subject, content, domain)


def email_users_without_access(
Expand Down

0 comments on commit 3e63c41

Please sign in to comment.