kernel/v2: fix validation on checksum types
This commit is contained in:
parent
832a5ef70b
commit
e83070371d
|
@ -270,6 +270,9 @@ module VagrantPlugins
|
||||||
@hostname = nil if @hostname == UNSET_VALUE
|
@hostname = nil if @hostname == UNSET_VALUE
|
||||||
@hostname = @hostname.to_s if @hostname
|
@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
|
if @box_download_checksum_type
|
||||||
@box_download_checksum_type = @box_download_checksum_type.to_sym
|
@box_download_checksum_type = @box_download_checksum_type.to_sym
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue