Skip to content

Commit

Permalink
Make condition more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
vydrazde committed Jan 15, 2025
1 parent 1ee87b6 commit 18b0ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/molecule_plugins/openstack/playbooks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
image: "{{ item.image }}"
key_name: "{{ key_name }}"
flavor: "{{ item.flavor }}"
floating_ip_pools: "{{ item.floating_ip_pools if item.floating_ip_pools is defined and item.floating_ip_pools else omit }}"
floating_ip_pools: "{{ item.floating_ip_pools if item.floating_ip_pools is defined and item.floating_ip_pools | length > 0 else omit }}"
auto_ip: "{{ item.auto_ip if item.auto_ip is defined else omit }}"
boot_from_volume: "{{ true if item.volume is defined and item.volume.size else false }}"
terminate_volume: "{{ true if item.volume is defined and item.volume.size else false }}"
Expand Down

0 comments on commit 18b0ce1

Please sign in to comment.