Better be cautious here

This commit is contained in:
Fabio Rehm 2013-06-08 01:00:21 -03:00
parent e159a9b534
commit 93003caec3

View file

@ -49,7 +49,7 @@ module Vagrant
end
def validate_box
if @box.metadata.fetch('version').to_i < 2
if [2, 3].include? @box.metadata.fetch('version').to_i
raise Errors::InvalidBoxVersion.new name: @box.name
end