Better be cautious here
This commit is contained in:
parent
e159a9b534
commit
93003caec3
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ module Vagrant
|
||||||
end
|
end
|
||||||
|
|
||||||
def validate_box
|
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
|
raise Errors::InvalidBoxVersion.new name: @box.name
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue