Allow custom name for disk device

This is needed for example for xen in full virtualisation mode
as it won't allow the default vda
This commit is contained in:
Michal Sylwester
2017-01-30 17:06:31 +01:00
parent ecea549e7f
commit 07dbb907bd
6 changed files with 11 additions and 2 deletions

View File

@@ -36,6 +36,7 @@ describe 'templates/domain' do
domain.instance_variable_set('@domain_volume_path', '/var/lib/libvirt/images/test.qcow2')
domain.instance_variable_set('@domain_volume_cache', 'unsafe')
domain.disk_bus = 'ide'
domain.disk_device = 'vda'
domain.storage(:file, path: 'test-disk1.qcow2')
domain.storage(:file, path: 'test-disk2.qcow2')
domain.disks.each do |disk|