Skip to content

Commit

Permalink
Define only 'sata' bus explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
Marat Bakeev authored Jan 23, 2020
1 parent c91fc83 commit 2c803f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/vm.xml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<source pool='{{ volume.pool }}' volume='{{ volume.name }}'/>
{% endif %}
{% if volume.target is undefined %}
<target dev='vd{{ 'abcdefghijklmnopqrstuvwxyz'[loop.index - 1] }}' {% if volume.device | default(libvirt_volume_default_device) == 'cdrom' %}bus='sata'{% else %}bus='virtio'{% endif %}/>
<target dev='vd{{ 'abcdefghijklmnopqrstuvwxyz'[loop.index - 1] }}' {% if volume.device | default(libvirt_volume_default_device) == 'cdrom' %}bus='sata'{% endif %}/>
{% else %}
<target dev='{{ volume.target }}' {% if volume.device | default(libvirt_volume_default_device) == 'cdrom' %}bus='sata'{% endif %}/>
{% endif %}
Expand Down

0 comments on commit 2c803f1

Please sign in to comment.