[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:
parent
58489dbf17
commit
0952f41d20
1 changed files with 4 additions and 5 deletions
|
@ -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.
|
# 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
|
# Or add more toddlers to the list (using their name) if you want to disable
|
||||||
# more of them.
|
# more of them.
|
||||||
|
{% if env == "staging" %}
|
||||||
blocked_toddlers = ["debug"]
|
blocked_toddlers = ["debug"]
|
||||||
|
{% else %}
|
||||||
|
blocked_toddlers = ["debug", "distgit_commit_processor"]
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
[consumer_config.default]
|
[consumer_config.default]
|
||||||
# Configuration common to all toddlers.
|
# Configuration common to all toddlers.
|
||||||
|
@ -400,11 +404,6 @@ notify_emails = [
|
||||||
|
|
||||||
# Configuration section for distgit_commit_processor
|
# Configuration section for distgit_commit_processor
|
||||||
[consumer_config.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_from = "notifications@{{ env_prefix }}fedoraproject.org"
|
||||||
mail_to = "scm-commits@lists.{{ env_prefix }}fedoraproject.org"
|
mail_to = "scm-commits@lists.{{ env_prefix }}fedoraproject.org"
|
||||||
# This is the default subject
|
# This is the default subject
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue