We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc433c8 commit 2d92ec8Copy full SHA for 2d92ec8
roles/libvirt_manager/tasks/generate_networking_data.yml
@@ -38,10 +38,14 @@
38
- name: Generate VM list
39
vars:
40
_run_id: >-
41
- {%- if cifmw_architecture_scenario is defined and
42
- cifmw_architecture_scenario | length > 0 -%}
43
- -{{ cifmw_run_id | lower }}
44
- {%- endif -%}
+ {{
+ '-' + (cifmw_run_id | lower)
+ if (
+ cifmw_architecture_scenario is defined and
45
+ cifmw_architecture_scenario | length > 0 and
46
+ cifmw_run_id | default('') | length > 0
47
+ ) else ''
48
+ }}
49
vm_list: >-
50
{% set _vm_list = {} -%}
51
{% set _range = [] -%}
0 commit comments