Skip to content

Commit

Permalink
Fix error by add condition to check if item is empty from the conditi…
Browse files Browse the repository at this point in the history
…onal

Change-Id: I20ec56279fb774fc411251cc89e1a685a6a7c5e7
Closes-Bug: #1573908
  • Loading branch information
winggundamth committed Apr 24, 2016
1 parent 23f436b commit ada466c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/openstack_kernel_modules.yml
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit ada466c

Please sign in to comment.