From 93003caec389cd567ea9eb73bee3955d9fde69f7 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sat, 8 Jun 2013 01:00:21 -0300 Subject: [PATCH] Better be cautious here --- lib/vagrant-lxc/action/handle_box_metadata.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-lxc/action/handle_box_metadata.rb b/lib/vagrant-lxc/action/handle_box_metadata.rb index 9d8bf8a..e20613b 100644 --- a/lib/vagrant-lxc/action/handle_box_metadata.rb +++ b/lib/vagrant-lxc/action/handle_box_metadata.rb @@ -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