#2214 bodhi: Fix nested quotation
Merged 2 months ago by zlopez. Opened 2 months ago by carlwgeorge.
fedora-infra/ carlwgeorge/ansible epel10_bodhi_pungi_typo  into  main

@@ -133,7 +133,7 @@ 

                      [# In the case of testing, also inject the last stable updates #]

                      "https://kojipkgs{env_suffix}.fedoraproject.org/compose/updates/f[[ release.version ]]-updates/compose/Everything/$basearch/os/",

                  [% endif %]

-                 [% if release.version == '41' %]

+                 [% if release.version == "41" %]

                      [# For F41 the compose location is going to be under /compose/branched/ #]

                      "https://kojipkgs{env_suffix}.fedoraproject.org/compose/branched/latest-Fedora-[[ release.version ]]/compose/Everything/$basearch/os/"

                  [% else %]

In c7fbc26afe9f770414a49d150d9072c1e58b21ec I switched an integer 41 to a string, but didn't notice that it was inside another string as part of the double templating this file does. This results in a template error:

jinja2.exceptions.TemplateSyntaxError: expected token 'end of statement block', got 'integer'

Other strings inside this bigger string use double instead of single quotes to handle this, so let's take the same approach on this line.

Signed-off-by: Carl George carlwgeorge@gmail.com

Pull-Request has been merged by zlopez

2 months ago

Merged and deployed with:

ansible-playbook /srv/web/infra/ansible/playbooks/groups/bodhi-backend.yml -t bodhi/pungi
Metadata