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:
Simo Leone 2014-09-02 13:17:30 -07:00
parent 2fea07f92d
commit 71119590e8
1 changed files with 1 additions and 1 deletions

View File

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