Skip to content

Commit 2c803f1

Browse files
author
Marat Bakeev
authored
Define only 'sata' bus explicitly
1 parent c91fc83 commit 2c803f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/vm.xml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<source pool='{{ volume.pool }}' volume='{{ volume.name }}'/>
4040
{% endif %}
4141
{% if volume.target is undefined %}
42-
<target dev='vd{{ 'abcdefghijklmnopqrstuvwxyz'[loop.index - 1] }}' {% if volume.device | default(libvirt_volume_default_device) == 'cdrom' %}bus='sata'{% else %}bus='virtio'{% endif %}/>
42+
<target dev='vd{{ 'abcdefghijklmnopqrstuvwxyz'[loop.index - 1] }}' {% if volume.device | default(libvirt_volume_default_device) == 'cdrom' %}bus='sata'{% endif %}/>
4343
{% else %}
4444
<target dev='{{ volume.target }}' {% if volume.device | default(libvirt_volume_default_device) == 'cdrom' %}bus='sata'{% endif %}/>
4545
{% endif %}

0 commit comments

Comments
 (0)