Don't warn about an .1 IP for DHCP networks

When the network's type is :dhcp, the :ip option is used to derive the DHCP server configuration, and it doesn't actually indicate the IP that will be received by the VM(s).
This commit is contained in:
Victor Costan 2015-08-15 06:53:01 -04:00
parent cd25b820c4
commit 4425d91d86
1 changed files with 1 additions and 1 deletions

View File

@ -688,7 +688,7 @@ module VagrantPlugins
end
end
if options[:ip] && options[:ip].end_with?(".1")
if options[:ip] && options[:ip].end_with?(".1") && options[:type].to_sym != :dhcp
machine.ui.warn(I18n.t(
"vagrant.config.vm.network_ip_ends_in_one"))
end