Skip to content

Commit e33ebe6

Browse files
authored
Merge pull request #76 from stackhpc/fix-destroy-file-volume
Only destroy volumes of type volume or network
2 parents a803654 + cb6251b commit e33ebe6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: tasks/destroy-volumes.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
script: >
44
destroy_virt_volume.sh
55
{{ item.name }}
6-
{{ item.pool }}
6+
{{ item.pool | default('default') }}
77
with_items: "{{ volumes }}"
8+
when: item.type | default(libvirt_volume_default_type) == 'volume'
89
register: volume_result
910
environment: "{{ libvirt_vm_script_env }}"
1011
changed_when:

0 commit comments

Comments
 (0)