Skip to content

Commit aab3c67

Browse files
committed
Only destroy volumes of type volume or network
Other volume types (e.g. file) do not need to be destroyed. Fixes: #73
1 parent 9fab5e6 commit aab3c67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tasks/destroy-volumes.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
{{ item.name }}
66
{{ item.pool }}
77
with_items: "{{ volumes }}"
8+
when: item.type | default(libvirt_volume_default_type) in ['volume', 'network']
89
register: volume_result
910
environment: "{{ libvirt_vm_script_env }}"
1011
changed_when:

0 commit comments

Comments
 (0)