Default the proper hostname for config

This commit is contained in:
Mitchell Hashimoto 2013-03-01 17:12:17 -08:00
parent 3726f8d8de
commit 1f2856bdf3
1 changed files with 3 additions and 0 deletions

View File

@ -157,6 +157,9 @@ module VagrantPlugins
#-------------------------------------------------------------------
def finalize!
# Defaults
@hostname = nil if @hostname == UNSET_VALUE
# If we haven't defined a single VM, then we need to define a
# default VM which just inherits the rest of the configuration.
define(DEFAULT_VM_NAME) if defined_vm_keys.empty?