diff --git a/plugins/guests/alt/cap/configure_networks.rb b/plugins/guests/alt/cap/configure_networks.rb index f4a778523..e9f64a940 100644 --- a/plugins/guests/alt/cap/configure_networks.rb +++ b/plugins/guests/alt/cap/configure_networks.rb @@ -24,7 +24,7 @@ module VagrantPlugins end.compact networks.each.with_index do |network, i| network[:device] = interfaces[network[:interface]] - extra_opts = net_configs[i].dup || {} + extra_opts = net_configs[i] ? net_configs[i].dup : {} if nmcli_installed # Now check if the device is actively being managed by NetworkManager diff --git a/plugins/guests/redhat/cap/configure_networks.rb b/plugins/guests/redhat/cap/configure_networks.rb index c5794aa38..c618c8e53 100644 --- a/plugins/guests/redhat/cap/configure_networks.rb +++ b/plugins/guests/redhat/cap/configure_networks.rb @@ -24,7 +24,7 @@ module VagrantPlugins end.compact networks.each.with_index do |network, i| network[:device] = interfaces[network[:interface]] - extra_opts = net_configs[i].dup || {} + extra_opts = net_configs[i] ? net_configs[i].dup : {} if nmcli_installed # Now check if the device is actively being managed by NetworkManager