diff --git a/plugins/providers/virtualbox/action/prepare_nfs_settings.rb b/plugins/providers/virtualbox/action/prepare_nfs_settings.rb index 857da8f4e..18c7025ab 100644 --- a/plugins/providers/virtualbox/action/prepare_nfs_settings.rb +++ b/plugins/providers/virtualbox/action/prepare_nfs_settings.rb @@ -67,7 +67,7 @@ module VagrantPlugins def read_static_machine_ips ips = [] @machine.config.vm.networks.each do |type, options| - if type == :private_network && options[:ip].is_a?(String) + if type == :private_network && options[:type] == :static && options[:ip].is_a?(String) ips << options[:ip] end end