Prevent nil dup as unsupported in 2.3
This commit is contained in:
parent
a4a98d97fc
commit
9f1e7d9895
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue