Skip to content

Commit ff9f827

Browse files
Add checks for cifmw_devscripts_create_logical_volume is defined
1 parent 7c36a5a commit ff9f827

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

roles/reproducer/tasks/ocp_layout_assertions.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
8585
- name: Ensure we don't set some parameters when no extra disks
8686
when:
87+
- cifmw_devscripts_create_logical_volume is defined
8788
- _cifmw_libvirt_manager_layout.vms.ocp.extra_disks_num is undefined or
8889
_cifmw_libvirt_manager_layout.vms.ocp.extra_disks_num == 0
8990
ansible.builtin.assert:
@@ -141,7 +142,8 @@
141142
vars:
142143
_cinder_vols: >-
143144
{{
144-
(cifmw_devscripts_create_logical_volume | bool) |
145+
(cifmw_devscripts_create_logical_volume is defined and
146+
cifmw_devscripts_create_logical_volume | bool) |
145147
ternary(cifmw_devscripts_cinder_volume_pvs, [])
146148
}}
147149
_lvms_vols: >-
@@ -178,6 +180,7 @@
178180
block:
179181
- name: Ensure no allocation overlap
180182
when:
183+
- cifmw_devscripts_create_logical_volume is defined
181184
- cifmw_devscripts_create_logical_volume | bool
182185
- cifmw_use_lvms | default(false) | bool
183186
ansible.builtin.assert:
@@ -202,6 +205,7 @@
202205
203206
- name: Ensure Cinder PVs allocated disks are available
204207
when:
208+
- cifmw_devscripts_create_logical_volume is defined
205209
- cifmw_devscripts_create_logical_volume | bool
206210
ansible.builtin.assert:
207211
that:

0 commit comments

Comments
 (0)