Base name for disk is vagrant_primary if primary

This commit is contained in:
Brian Cain 2019-11-22 12:10:34 -08:00
parent ea7a230cb6
commit b5b59a4eee
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
1 changed files with 7 additions and 1 deletions

View File

@ -109,7 +109,13 @@ module VagrantPlugins
# Give the disk a default name if unset
# TODO: Name not required if primary?
@name = "vagrant_#{@type.to_s}_#{@id.split("-").last}" if @name == UNSET_VALUE
if @primary
base_name = "vagrant_primary"
else
base_name = "vagrant"
end
@name = "#{base_name}_#{@type.to_s}_#{@id.split("-").last}" if @name == UNSET_VALUE
@provider_config = nil if @provider_config == {}
end