From d764a308b4ce78b3380620bdc5bc12da16106689 Mon Sep 17 00:00:00 2001 From: Darragh Bailey Date: Mon, 19 Apr 2021 12:34:20 +0100 Subject: [PATCH] Revert auto_config change in #1249 (#1253) The #1249 introduce a change of behaviour on auto_config to skip if it was any kind of false, where as the correct behaviour is to only skip if explicitly set to false. --- lib/vagrant-libvirt/action/create_network_interfaces.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-libvirt/action/create_network_interfaces.rb b/lib/vagrant-libvirt/action/create_network_interfaces.rb index f0a0594..7aa5426 100644 --- a/lib/vagrant-libvirt/action/create_network_interfaces.rb +++ b/lib/vagrant-libvirt/action/create_network_interfaces.rb @@ -194,7 +194,7 @@ module VagrantPlugins # It's used for provisioning and it has to be available during provisioning, # ifdown command is not acceptable here. next if slot_number.zero? - next if !options[:auto_config] + next if options[:auto_config] === false @logger.debug "Configuring interface slot_number #{slot_number} options #{options}" network = {