Skip to content

Commit 6afb551

Browse files
committed
Fix ansible warning
TASK [stackhpc.libvirt-vm : Ensure the VM volumes exist] *********** [WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ item.device | default(libvirt_volume_default_device) == 'disk' }}
1 parent 529e607 commit 6afb551

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/volumes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
-b {{ item.backing_image }}
2727
{% endif %}
2828
with_items: "{{ volumes }}"
29-
when: "{{ item.device | default(libvirt_volume_default_device) == 'disk' }}"
29+
when: item.device | default(libvirt_volume_default_device) == 'disk'
3030
environment: "{{ libvirt_vm_script_env }}"
3131
register: volume_result
3232
changed_when:

0 commit comments

Comments
 (0)