Skip to content

Commit 44dd0fd

Browse files
committed
Fix default of volume type
Should be libvirt_volume_default_type rather than libvirt_volume_default_device.
1 parent a36732e commit 44dd0fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tasks/volumes.yml

Lines changed: 1 addition & 2 deletions
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.type | default(libvirt_volume_default_device) in ['volume', 'network']
30+
when: item.type | default(libvirt_volume_default_type) in ['volume', 'network']
3131
environment: "{{ libvirt_vm_script_env }}"
3232
register: volume_result
3333
changed_when:
@@ -48,4 +48,3 @@
4848
- volume_result_network.rc == 1
4949
check_mode: False
5050
become: true
51-

0 commit comments

Comments
 (0)