providers/virtualbox: cleaner ignore DHCP
This commit is contained in:
parent
8655d212c3
commit
951dc934cc
|
@ -67,7 +67,7 @@ module VagrantPlugins
|
||||||
def read_static_machine_ips
|
def read_static_machine_ips
|
||||||
ips = []
|
ips = []
|
||||||
@machine.config.vm.networks.each do |type, options|
|
@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]
|
ips << options[:ip]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue