From 4425d91d863b3b36347ebc53550b13d8e6e5bc37 Mon Sep 17 00:00:00 2001 From: Victor Costan Date: Sat, 15 Aug 2015 06:53:01 -0400 Subject: [PATCH] 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). --- plugins/kernel_v2/config/vm.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/kernel_v2/config/vm.rb b/plugins/kernel_v2/config/vm.rb index 2de1b343f..5f2486179 100644 --- a/plugins/kernel_v2/config/vm.rb +++ b/plugins/kernel_v2/config/vm.rb @@ -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