mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-31 09:20:43 +08:00
[toddlers] Use blocked_toddlers instead of enabled configuration value
I implemented enabled and didn't noticed that toddlers already have something similar in place as `blocked_toddlers`. Let's use it instead as it's shared between all toddlers. Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
@@ -42,7 +42,11 @@ routing_keys = ["#"] # This is dynamically generated in the code
|
||||
# Comment out or remove this line if you want to enable the debug toddler.
|
||||
# Or add more toddlers to the list (using their name) if you want to disable
|
||||
# more of them.
|
||||
{% if env == "staging" %}
|
||||
blocked_toddlers = ["debug"]
|
||||
{% else %}
|
||||
blocked_toddlers = ["debug", "distgit_commit_processor"]
|
||||
{% endif %}
|
||||
|
||||
[consumer_config.default]
|
||||
# Configuration common to all toddlers.
|
||||
@@ -400,11 +404,6 @@ notify_emails = [
|
||||
|
||||
# Configuration section for distgit_commit_processor
|
||||
[consumer_config.distgit_commit_processor]
|
||||
{% if env == "staging" %}
|
||||
enabled = true
|
||||
{% else %}
|
||||
enabled = false
|
||||
{% endif %}
|
||||
mail_from = "notifications@{{ env_prefix }}fedoraproject.org"
|
||||
mail_to = "scm-commits@lists.{{ env_prefix }}fedoraproject.org"
|
||||
# This is the default subject
|
||||
|
||||
Reference in New Issue
Block a user