Skip to content

Commit 6f4ab93

Browse files
authored
Merge pull request #46 from /issues/45
Create volume when type is volume, not device is disk
2 parents a31619d + 43db416 commit 6f4ab93

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)