Skip to content

Commit

Permalink
Merge pull request #76 from stackhpc/fix-destroy-file-volume
Browse files Browse the repository at this point in the history
Only destroy volumes of type volume or network
  • Loading branch information
markgoddard authored Dec 21, 2020
2 parents a803654 + cb6251b commit e33ebe6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/destroy-volumes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
script: >
destroy_virt_volume.sh
{{ item.name }}
{{ item.pool }}
{{ item.pool | default('default') }}
with_items: "{{ volumes }}"
when: item.type | default(libvirt_volume_default_type) == 'volume'
register: volume_result
environment: "{{ libvirt_vm_script_env }}"
changed_when:
Expand Down

0 comments on commit e33ebe6

Please sign in to comment.