copr-be: pools.yaml powerful _ separator

This commit is contained in:
Pavel Raiskup 2023-10-09 10:47:44 +02:00
parent 9741976e0a
commit e7b90391f0

View file

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