pagure: hotfix notify.py so it doesn't send any emails for the 389-ds-base project, at all
Fixes https://pagure.io/fedora-infrastructure/issue/9309 Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
043d2c723b
commit
ffe3cf28b9
2 changed files with 16 additions and 0 deletions
|
@ -450,6 +450,10 @@ def send_email(
|
||||||
msg["List-Archive"] = _build_url(
|
msg["List-Archive"] = _build_url(
|
||||||
pagure_config["APP_URL"], _fullname_to_url(project_name)
|
pagure_config["APP_URL"], _fullname_to_url(project_name)
|
||||||
)
|
)
|
||||||
|
if project_name == "389-ds-base":
|
||||||
|
_log.info("Do not notify about 389-ds-base")
|
||||||
|
return
|
||||||
|
|
||||||
if reporter is not None:
|
if reporter is not None:
|
||||||
msg["X-pagure-reporter"] = reporter
|
msg["X-pagure-reporter"] = reporter
|
||||||
if assignee is not None:
|
if assignee is not None:
|
||||||
|
|
|
@ -508,6 +508,18 @@
|
||||||
- pagure
|
- pagure
|
||||||
|
|
||||||
|
|
||||||
|
# Install hotfix for the notify.py file for
|
||||||
|
# https://pagure.io/fedora-infrastructure/issue/9309
|
||||||
|
|
||||||
|
- name: Install the hotfixed notify.py
|
||||||
|
copy: src=notify.py
|
||||||
|
dest=/usr/lib/python3.6/site-packages/pagure/lib/notify.py
|
||||||
|
owner=root group=root mode=0644
|
||||||
|
notify: restart httpd
|
||||||
|
tags:
|
||||||
|
- hotfix
|
||||||
|
- pagure
|
||||||
|
|
||||||
# Ensure all the services are up and running
|
# Ensure all the services are up and running
|
||||||
|
|
||||||
- name: Start and enable httpd, postfix, pagure_milter
|
- name: Start and enable httpd, postfix, pagure_milter
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue