Skip to content

Commit 43db416

Browse files
committed
Create volume when type is volume, not device is disk
Creating volumes only when the device is disk breaks the case where we have a CDROM device backed by a volume. Fixes: #45
1 parent d77956d commit 43db416

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
@@ -27,7 +27,7 @@
2727
{% endif %}
2828
-a {{ ansible_check_mode }}
2929
with_items: "{{ volumes }}"
30-
when: item.device | default(libvirt_volume_default_device) == 'disk'
30+
when: item.type | default(libvirt_volume_default_type) == 'volume'
3131
environment: "{{ libvirt_vm_script_env }}"
3232
register: volume_result
3333
changed_when:

0 commit comments

Comments
 (0)