Skip to content

Commit

Permalink
Add a fix to enable passing empty cifmw_run_id
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzyfriday authored and openshift-merge-bot[bot] committed Dec 16, 2024
1 parent bc433c8 commit 2d92ec8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions roles/libvirt_manager/tasks/generate_networking_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,14 @@
- name: Generate VM list
vars:
_run_id: >-
{%- if cifmw_architecture_scenario is defined and
cifmw_architecture_scenario | length > 0 -%}
-{{ cifmw_run_id | lower }}
{%- endif -%}
{{
'-' + (cifmw_run_id | lower)
if (
cifmw_architecture_scenario is defined and
cifmw_architecture_scenario | length > 0 and
cifmw_run_id | default('') | length > 0
) else ''
}}
vm_list: >-
{% set _vm_list = {} -%}
{% set _range = [] -%}
Expand Down

0 comments on commit 2d92ec8

Please sign in to comment.