Merge pull request #4434 from simoleone/fix-nfs-with-dhcp-custom-range

Fix NFS when DHCP settings use a custom IP range
This commit is contained in:
Mitchell Hashimoto 2014-09-04 14:12:41 -07:00
commit 5f3f52314b
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[:ip].is_a?(String)
if type == :private_network && options[:type] == :static && options[:ip].is_a?(String)
ips << options[:ip]
end
end