From 951dc934ccd6f9050eabc20db72d806de8ef788e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 4 Sep 2014 14:20:03 -0700 Subject: [PATCH] providers/virtualbox: cleaner ignore DHCP --- plugins/providers/virtualbox/action/prepare_nfs_settings.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/providers/virtualbox/action/prepare_nfs_settings.rb b/plugins/providers/virtualbox/action/prepare_nfs_settings.rb index 18c7025ab..b88cee99f 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[:type] == :static && options[:ip].is_a?(String) + if type == :private_network && options[:type] != :dhcp && options[:ip].is_a?(String) ips << options[:ip] end end