Ensure primary is true or false

This commit is contained in:
Brian Cain 2019-10-23 15:32:04 -07:00
parent cef1bd47b3
commit 499e39dd10
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
1 changed files with 6 additions and 1 deletions

View File

@ -101,7 +101,12 @@ module VagrantPlugins
# by user
@type = :disk if @type == UNSET_VALUE
@size = nil if @size == UNSET_VALUE
@primary = true if @primary == UNSET_VALUE
if @primary == UNSET_VALUE
@primary = true
else
@primary = false
end
# Give the disk a default name if unset
# TODO: Name not required if primary?