prepare_nfs_settings: Use scoped hash override when reading static IPs.

This commit is contained in:
David O'Rourke 2016-06-03 15:19:23 +01:00
parent 514193090a
commit 60fd777806
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,8 @@ module VagrantPlugins
def read_static_machine_ips
ips = []
@machine.config.vm.networks.each do |type, options|
options = scoped_hash_override(options, :virtualbox)
if type == :private_network && options[:type] != :dhcp && options[:ip].is_a?(String)
ips << options[:ip]
end