mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-04-29 18:20:09 -04:00
Fixed conditions in network_ip_ends_in_one
Solve error: undefined method `end_with?' for nil:NilClass (NoMethodError)
This commit is contained in:
parent
9df95a2002
commit
a030ec068f
1 changed files with 1 additions and 1 deletions
|
|
@ -923,7 +923,7 @@ module VagrantPlugins
|
|||
end
|
||||
end
|
||||
|
||||
if options[:ip] && options[:ip].end_with?(".1") || options[:ip].end_with?(":1") && (options[:type] || "").to_sym != :dhcp
|
||||
if options[:ip] && (options[:ip].end_with?(".1") || options[:ip].end_with?(":1")) && (options[:type] || "").to_sym != :dhcp
|
||||
machine.ui.warn(I18n.t(
|
||||
"vagrant.config.vm.network_ip_ends_in_one"))
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue