Skip to content

Commit 2d92ec8

Browse files
Add a fix to enable passing empty cifmw_run_id
1 parent bc433c8 commit 2d92ec8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

roles/libvirt_manager/tasks/generate_networking_data.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,14 @@
3838
- name: Generate VM list
3939
vars:
4040
_run_id: >-
41-
{%- if cifmw_architecture_scenario is defined and
42-
cifmw_architecture_scenario | length > 0 -%}
43-
-{{ cifmw_run_id | lower }}
44-
{%- endif -%}
41+
{{
42+
'-' + (cifmw_run_id | lower)
43+
if (
44+
cifmw_architecture_scenario is defined and
45+
cifmw_architecture_scenario | length > 0 and
46+
cifmw_run_id | default('') | length > 0
47+
) else ''
48+
}}
4549
vm_list: >-
4650
{% set _vm_list = {} -%}
4751
{% set _range = [] -%}

0 commit comments

Comments
 (0)