Set default disk to non-primary
This commit is contained in:
parent
a51e9b1fa1
commit
a457dee8b0
|
@ -102,9 +102,9 @@ module VagrantPlugins
|
||||||
@file = nil if @file == UNSET_VALUE
|
@file = nil if @file == UNSET_VALUE
|
||||||
|
|
||||||
if @primary == UNSET_VALUE
|
if @primary == UNSET_VALUE
|
||||||
@primary = true
|
|
||||||
else
|
|
||||||
@primary = false
|
@primary = false
|
||||||
|
else
|
||||||
|
@primary = true
|
||||||
end
|
end
|
||||||
|
|
||||||
# Give the disk a default name if unset
|
# Give the disk a default name if unset
|
||||||
|
|
|
@ -43,9 +43,9 @@ describe VagrantPlugins::Kernel_V2::VagrantConfigDisk do
|
||||||
expect(subject.type).to eq(type)
|
expect(subject.type).to eq(type)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "defaults to primray disk" do
|
it "defaults to non-primray disk" do
|
||||||
subject.finalize!
|
subject.finalize!
|
||||||
expect(subject.primary).to eq(true)
|
expect(subject.primary).to eq(false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue