Skip to content

Commit

Permalink
Fixed default for volume.type
Browse files Browse the repository at this point in the history
  • Loading branch information
markgoddard authored Nov 22, 2019
1 parent 57305db commit 5388196
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/vm.xml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
<devices>
<emulator>{{ libvirt_vm_emulator }}</emulator>
{% for volume in volumes %}
<disk type='{{ volume.type |default(libvirt_volume_default_type) }}' device='{{ volume.device | default(libvirt_volume_default_device) }}'>
<disk type='{{ volume.type | default(libvirt_volume_default_type) }}' device='{{ volume.device | default(libvirt_volume_default_device) }}'>
<driver name='qemu' type='{{ volume.format | default(libvirt_volume_default_format) }}'/>
{% if volume.type is defined and volume.type == 'file' %}
{% if volume.type | default(libvirt_volume_default_type) == 'file' %}
<source file='{{ volume.file_path |default(libvirt_volume_default_images_path) }}/{{ volume.name}}'/>
{% else %}
<source pool='{{ volume.pool }}' volume='{{ volume.name }}'/>
Expand Down

0 comments on commit 5388196

Please sign in to comment.