mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-06-03 14:00:15 -04:00
Base name for disk is vagrant_primary if primary
This commit is contained in:
parent
ea7a230cb6
commit
b5b59a4eee
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue