Convert config.vm.hostname to string [GH-1999]

This commit is contained in:
Mitchell Hashimoto 2013-07-28 12:08:49 -07:00
parent 6c4592ad64
commit 2282a88f3d
2 changed files with 2 additions and 0 deletions

View File

@ -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)

View File

@ -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