Merge CDROM storage config blocks

This commit is contained in:
Darragh Bailey
2016-11-25 16:07:55 +00:00
parent 286bdf25b8
commit 4af944f9d6
2 changed files with 4 additions and 1 deletions

View File

@@ -637,6 +637,9 @@ module VagrantPlugins
c = disks.dup
c += other.disks
result.disks = c
c = cdroms.dup
c += other.cdroms
result.cdroms = c
end
end
end

View File

@@ -87,7 +87,7 @@ describe VagrantPlugins::ProviderLibvirt::Config do
context "with cdroms only" do
context "assigned specific devs" do
xit "should merge disks with specific devices" do
it "should merge disks with specific devices" do
one.storage(:file, :device => :cdrom, :dev => "hda")
two.storage(:file, :device => :cdrom, :dev => "hdb")
subject.finalize!