diff --git a/plugins/providers/hyperv/action/import.rb b/plugins/providers/hyperv/action/import.rb index acd7e2124..0b617ad54 100644 --- a/plugins/providers/hyperv/action/import.rb +++ b/plugins/providers/hyperv/action/import.rb @@ -59,7 +59,7 @@ module VagrantPlugins env[:machine].config.vm.networks.each do |type, opts| next if type != :public_network && type != :private_network - switchToFind = opts[:network_name] + switchToFind = opts[:bridge] if switchToFind puts "Looking for switch with name: #{switchToFind}"