Default the proper hostname for config
This commit is contained in:
parent
3726f8d8de
commit
1f2856bdf3
|
@ -157,6 +157,9 @@ module VagrantPlugins
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
def finalize!
|
def finalize!
|
||||||
|
# Defaults
|
||||||
|
@hostname = nil if @hostname == UNSET_VALUE
|
||||||
|
|
||||||
# If we haven't defined a single VM, then we need to define a
|
# If we haven't defined a single VM, then we need to define a
|
||||||
# default VM which just inherits the rest of the configuration.
|
# default VM which just inherits the rest of the configuration.
|
||||||
define(DEFAULT_VM_NAME) if defined_vm_keys.empty?
|
define(DEFAULT_VM_NAME) if defined_vm_keys.empty?
|
||||||
|
|
Loading…
Reference in New Issue