File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 30
30
<devices >
31
31
<emulator >{{ libvirt_vm_emulator }}</emulator >
32
32
{% for volume in volumes %}
33
- <disk type =' {{ volume.type |default(libvirt_volume_default_type) }}' device =' {{ volume.device | default(libvirt_volume_default_device) }}' >
33
+ <disk type =' {{ volume.type | default(libvirt_volume_default_type) }}' device =' {{ volume.device | default(libvirt_volume_default_device) }}' >
34
34
<driver name =' qemu' type =' {{ volume.format | default(libvirt_volume_default_format) }}' />
35
- {% if volume .type is defined and volume . type == 'file' %}
35
+ {% if volume .type | default ( libvirt_volume_default_type ) == 'file' %}
36
36
<source file =' {{ volume.file_path |default(libvirt_volume_default_images_path) }}/{{ volume.name}}' />
37
37
{% else %}
38
38
<source pool =' {{ volume.pool }}' volume =' {{ volume.name }}' />
You can’t perform that action at this time.
0 commit comments