From 1f2856bdf3b4cf1fd9d71ccafe7ce73855ea469a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 1 Mar 2013 17:12:17 -0800 Subject: [PATCH] Default the proper hostname for config --- plugins/kernel_v2/config/vm.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/kernel_v2/config/vm.rb b/plugins/kernel_v2/config/vm.rb index d34c97fee..406e207aa 100644 --- a/plugins/kernel_v2/config/vm.rb +++ b/plugins/kernel_v2/config/vm.rb @@ -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?