Fix error by add condition to check if item is empty from the conditional
Change-Id: I20ec56279fb774fc411251cc89e1a685a6a7c5e7 Closes-Bug: #1573908
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
modprobe:
|
||||
name: "{{ item }}"
|
||||
with_items: openstack_host_kernel_modules
|
||||
when: openstack_host_kernel_modules is defined
|
||||
when: openstack_host_kernel_modules is defined and item != ''
|
||||
tags:
|
||||
- openstack-host-kernel-modules
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
dest: /etc/modules
|
||||
line: "{{ item }}"
|
||||
with_items: openstack_host_kernel_modules
|
||||
when: openstack_host_kernel_modules is defined
|
||||
when: openstack_host_kernel_modules is defined and item != ''
|
||||
tags:
|
||||
- openstack-host-kernel-modules
|
||||
|
||||
|
||||
Reference in New Issue
Block a user