Support empty strings in dev-tools package lists

Closes-Bug: #2115000
Change-Id: Ib27428f89b0e3f2865ab1c498f05de741fa49587
Signed-off-by: Pierre Riteau <pierre@stackhpc.com>
This commit is contained in:
Pierre Riteau
2025-06-25 08:29:58 +02:00
parent 87459afc2d
commit 36e7a7b0d0
2 changed files with 8 additions and 1 deletions

View File

@@ -15,4 +15,4 @@ dev_tools_packages_system:
- acl
# List of packages to install.
dev_tools_packages: "{{ dev_tools_packages_default + dev_tools_packages_extra + dev_tools_packages_system }}"
dev_tools_packages: "{{ (dev_tools_packages_default + dev_tools_packages_extra + dev_tools_packages_system) | select | list }}"

View File

@@ -0,0 +1,7 @@
---
fixes:
- |
Fixes support for empty strings in the ``dev-tools`` package lists. This
allows using expressions such as ``{{ 'foo' if os_distribution == 'rocky'
else '' }}``.
`LP#2115000 <https://bugs.launchpad.net/kayobe/+bug/2115000>`__