lib/vagrant/environment.rb in vagrant-0.7.7 vs lib/vagrant/environment.rb in vagrant-0.7.8

- old
+ new

@@ -34,10 +34,10 @@ # Verifies that VirtualBox is installed and that the version of # VirtualBox installed is high enough. def check_virtualbox! version = VirtualBox.version raise Errors::VirtualBoxNotDetected if version.nil? - raise Errors::VirtualBoxInvalidVersion, :version => version.to_s if version.to_f < 4.0 + raise Errors::VirtualBoxInvalidVersion, :version => version.to_s if version.to_f < 4.0 || version.to_f >= 4.1 rescue Errors::VirtualBoxNotDetected # On 64-bit Windows, show a special error. This error is a subclass # of VirtualBoxNotDetected, so libraries which use Vagrant can just # rescue VirtualBoxNotDetected. raise Errors::VirtualBoxNotDetected_Win64 if Util::Platform.windows? && Util::Platform.bit64?