Ignore errors when removing existing configurations

This commit is contained in:
Chris Roberts 2021-11-04 15:26:34 -07:00
parent 657b2a39d9
commit 8062242f7f

View File

@ -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]]