Only allow private_network for docker network provider
This commit is contained in:
parent
29696b0f73
commit
5adffb608d
|
@ -18,8 +18,8 @@ module VagrantPlugins
|
|||
end
|
||||
|
||||
machine.config.vm.networks.each do |type, options|
|
||||
# We only handle private and public networks
|
||||
next if type != :private_network && type != :public_network
|
||||
# We only handle private networks
|
||||
next if type != :private_network
|
||||
|
||||
if options[:subnet]
|
||||
network_name = "vagrant_network_#{options[:subnet]}"
|
||||
|
|
|
@ -40,8 +40,8 @@ module VagrantPlugins
|
|||
env[:ui].info("Configuring and enabling network interfaces...")
|
||||
|
||||
machine.config.vm.networks.each do |type, options|
|
||||
# We only handle private and public networks
|
||||
next if type != :private_network && type != :public_network
|
||||
# We only handle private networks
|
||||
next if type != :private_network
|
||||
|
||||
cli_opts = parse_cli_arguments(options)
|
||||
|
||||
|
|
Loading…
Reference in New Issue