provisioners/ansible: convert extra vars to strings [GH-2244]

This commit is contained in:
Mitchell Hashimoto 2013-09-20 21:16:50 -07:00
parent d725e0e657
commit 36bd52713b
2 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,7 @@ BUG FIXES:
- guests/linux: Don't raise exception right away if mounting fails, allow - guests/linux: Don't raise exception right away if mounting fails, allow
retries. [GH-2234] retries. [GH-2234]
- hosts/arch: Vagrant won't crash on Arch anymore. [GH-2233] - hosts/arch: Vagrant won't crash on Arch anymore. [GH-2233]
- provisioners/ansibe: Extra vars are converted to strings. [GH-2244]
- provisioners/puppet: Work with restrictive umask. [GH-2241] - provisioners/puppet: Work with restrictive umask. [GH-2241]
## 1.3.3 (September 18, 2013) ## 1.3.3 (September 18, 2013)

View File

@ -47,6 +47,12 @@ module VagrantPlugins
@start_at_task = nil if @start_at_task == UNSET_VALUE @start_at_task = nil if @start_at_task == UNSET_VALUE
@raw_arguments = nil if @raw_arguments == UNSET_VALUE @raw_arguments = nil if @raw_arguments == UNSET_VALUE
@host_key_checking = nil if @host_key_checking == UNSET_VALUE @host_key_checking = nil if @host_key_checking == UNSET_VALUE
if @extra_vars && @extra_vars.is_a?(Hash)
@extra_vars.each do |k, v|
@extra_vars[k] = v.to_s
end
end
end end
def validate(machine) def validate(machine)