Only allow private_network for docker network provider

This commit is contained in:
Brian Cain 2019-03-01 16:23:09 -08:00
parent 29696b0f73
commit 5adffb608d
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
2 changed files with 4 additions and 4 deletions

View File

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

View File

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