From 55a8649963c3ca4e380038a7e0f5826910b5d178 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Thu, 6 Dec 2018 15:38:19 -0800 Subject: [PATCH] Adjust requirement on warnings for VirtualBox NIC The changeset _did_ get included in the 5.2.22 release so adjust the requirement to only warn on previous versions --- plugins/providers/virtualbox/action/set_default_nic_type.rb | 2 +- .../providers/virtualbox/action/set_default_nic_type_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/providers/virtualbox/action/set_default_nic_type.rb b/plugins/providers/virtualbox/action/set_default_nic_type.rb index e3b337445..8d7b18db0 100644 --- a/plugins/providers/virtualbox/action/set_default_nic_type.rb +++ b/plugins/providers/virtualbox/action/set_default_nic_type.rb @@ -11,7 +11,7 @@ module VagrantPlugins class SetDefaultNICType # Defines versions of VirtualBox with susceptible implementation # of the E1000 devices. - E1000_SUSCEPTIBLE = Gem::Requirement.new("<= 5.2.22").freeze + E1000_SUSCEPTIBLE = Gem::Requirement.new("< 5.2.22").freeze def initialize(app, env) @logger = Log4r::Logger.new("vagrant::plugins::virtualbox::set_default_nic_type") diff --git a/test/unit/plugins/providers/virtualbox/action/set_default_nic_type_test.rb b/test/unit/plugins/providers/virtualbox/action/set_default_nic_type_test.rb index f621d152c..7ef59fc7d 100644 --- a/test/unit/plugins/providers/virtualbox/action/set_default_nic_type_test.rb +++ b/test/unit/plugins/providers/virtualbox/action/set_default_nic_type_test.rb @@ -91,7 +91,7 @@ describe VagrantPlugins::ProviderVirtualBox::Action::SetDefaultNICType do end context "when virtualbox version is has susceptible E1000" do - let(:virtualbox_version) { "5.2.22" } + let(:virtualbox_version) { "5.2.21" } it "should output a warning" do expect(machine.ui).to receive(:warn)