From 8062242f7f57559651eef3a1844f8a401ce66bfa Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Thu, 4 Nov 2021 15:26:34 -0700 Subject: [PATCH] Ignore errors when removing existing configurations --- plugins/guests/coreos/cap/configure_networks.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/guests/coreos/cap/configure_networks.rb b/plugins/guests/coreos/cap/configure_networks.rb index e4f3e1d79..74993b0c9 100644 --- a/plugins/guests/coreos/cap/configure_networks.rb +++ b/plugins/guests/coreos/cap/configure_networks.rb @@ -24,7 +24,8 @@ module VagrantPlugins nm_dev[dev] = id end end - comm.sudo("rm #{File.join(NETWORK_MANAGER_CONN_DIR, 'vagrant-*.conf')}") + comm.sudo("rm #{File.join(NETWORK_MANAGER_CONN_DIR, 'vagrant-*.conf')}", + error_check: false) networks.each_with_index do |network, i| network[:device] = interfaces[network[:interface]]