Skip to content

Commit

Permalink
Merge pull request #13494 from MatrixDJ96/network_ip_ends_in_one_fix
Browse files Browse the repository at this point in the history
Fixed conditions in network_ip_ends_in_one
  • Loading branch information
chrisroberts authored Oct 30, 2024
2 parents 71150ee + a030ec0 commit adcbd81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/kernel_v2/config/vm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ def validate(machine, ignore_provider=nil)
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
Expand Down

0 comments on commit adcbd81

Please sign in to comment.