From 2282a88f3dfde65b881758b4643480cba4468c4a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 28 Jul 2013 12:08:49 -0700 Subject: [PATCH] Convert config.vm.hostname to string [GH-1999] --- CHANGELOG.md | 1 + plugins/kernel_v2/config/vm.rb | 1 + 2 files changed, 2 insertions(+) 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