Fix NFS when DHCP settings use a custom IP range
Only use the static IP if it is indeed a static IP. Otherwise assume it's DHCP and get the IP that way.
This commit is contained in:
parent
2fea07f92d
commit
71119590e8
|
@ -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[:ip].is_a?(String)
|
if type == :private_network && options[:type] == :static && options[:ip].is_a?(String)
|
||||||
ips << options[:ip]
|
ips << options[:ip]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue