kernel/v2: fix validation on checksum types

This commit is contained in:
Mitchell Hashimoto 2013-12-03 18:46:22 -08:00
parent 832a5ef70b
commit e83070371d
1 changed files with 3 additions and 0 deletions

View File

@ -270,6 +270,9 @@ module VagrantPlugins
@hostname = nil if @hostname == UNSET_VALUE
@hostname = @hostname.to_s if @hostname
# Make sure that the download checksum is a string and that
# the type is a symbol
@box_download_checksum = "" if !@box_download_checksum
if @box_download_checksum_type
@box_download_checksum_type = @box_download_checksum_type.to_sym
end