1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[libvirt] volumes dev names must be uniq

This commit is contained in:
Ohad Levy 2012-04-09 11:46:14 +03:00 committed by Ohad Levy
parent 244bc10010
commit 3d3c04db38

View file

@ -19,7 +19,8 @@
<disk type='file' device='disk'>
<driver name='qemu' type='<%= vol.format_type %>'/>
<source file='<%= vol.path %>'/>
<target dev='vda' bus='virtio'/>
<%# we need to ensure a unique target dev -%>
<target dev='vd<%= ('a'..'z').to_a[volumes.index(vol)] %>' bus='virtio'/>
</disk>
<% end -%>
<% if iso_file -%>