Merge pull request #6150 from pwnall/patch-2

Don't warn about an .1 IP for DHCP networks
This commit is contained in:
Mitchell Hashimoto 2015-11-18 12:04:52 -08:00
commit 8886a20d34
1 changed files with 1 additions and 1 deletions

View File

@ -697,7 +697,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