Set default disk to non-primary

This commit is contained in:
Brian Cain 2019-11-13 11:29:46 -08:00
parent a51e9b1fa1
commit a457dee8b0
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
2 changed files with 4 additions and 4 deletions

View File

@ -102,9 +102,9 @@ module VagrantPlugins
@file = nil if @file == UNSET_VALUE
if @primary == UNSET_VALUE
@primary = true
else
@primary = false
else
@primary = true
end
# Give the disk a default name if unset

View File

@ -43,9 +43,9 @@ describe VagrantPlugins::Kernel_V2::VagrantConfigDisk do
expect(subject.type).to eq(type)
end
it "defaults to primray disk" do
it "defaults to non-primray disk" do
subject.finalize!
expect(subject.primary).to eq(true)
expect(subject.primary).to eq(false)
end
end