diff --git a/CHANGELOG.md b/CHANGELOG.md index ceb695fdc..3dd5893a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ BUG FIXES: so that separator replacement works properly. - Use `--color=false` for no color in Puppet to support older versions properly. [GH-2000] + - Make sure the hostname configuration is a string. [GH-1999] ## 1.2.6 (July 26, 2013) diff --git a/plugins/kernel_v2/config/vm.rb b/plugins/kernel_v2/config/vm.rb index c650ddc59..03e8fbbb3 100644 --- a/plugins/kernel_v2/config/vm.rb +++ b/plugins/kernel_v2/config/vm.rb @@ -242,6 +242,7 @@ module VagrantPlugins @box_download_insecure = false if @box_download_insecure == UNSET_VALUE @guest = nil if @guest == UNSET_VALUE @hostname = nil if @hostname == UNSET_VALUE + @hostname = @hostname.to_s if @hostname # Set the guest properly @guest = @guest.to_sym if @guest