From e7b90391f0c9fe96b0237995296cc600499d7cbf Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 9 Oct 2023 10:47:44 +0200 Subject: [PATCH] copr-be: pools.yaml powerful _ separator --- roles/copr/backend/templates/resalloc/pools.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/copr/backend/templates/resalloc/pools.yaml b/roles/copr/backend/templates/resalloc/pools.yaml index b1f12430a9..940d8c43ad 100644 --- a/roles/copr/backend/templates/resalloc/pools.yaml +++ b/roles/copr/backend/templates/resalloc/pools.yaml @@ -1,6 +1,6 @@ --- {% macro aws(arch, max, max_starting, max_prealloc, spot=False, on_demand=none) %} -aws_{{ arch }}_{{ on_demand if on_demand is not none else '' }}{% if spot %}spot{% else %}normal{% endif %}_{% if devel %}dev{% else %}prod{% endif %}: +aws_{{ arch }}_{{ on_demand + '_' if on_demand is not none else '' }}{% if spot %}spot{% else %}normal{% endif %}_{% if devel %}dev{% else %}prod{% endif %}: {% if not on_demand %} max: {{ max }} max_starting: {{ max_starting }}