providers/virtualbox: cleaner ignore DHCP

This commit is contained in:
Mitchell Hashimoto 2014-09-04 14:20:03 -07:00
parent 8655d212c3
commit 951dc934cc
1 changed files with 1 additions and 1 deletions

View File

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