#2058 [toddlers] Use blocked_toddlers instead of enabled configuration value
Merged 15 days ago by zlopez. Opened 15 days ago by zlopez.
fedora-infra/ zlopez/ansible toddlers_distgit_commit_processor  into  main

@@ -42,7 +42,11 @@ 

  # 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 @@ 

  

  # 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

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

Pull-Request has been merged by zlopez

15 days ago