Skip to content

Commit

Permalink
Add check to make sure DHCP route error only shows for DHCP setups
Browse files Browse the repository at this point in the history
  • Loading branch information
tayterz2 committed Nov 2, 2024
1 parent 78ef769 commit 6acbaa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/console/install_panels.go
Original file line number Diff line number Diff line change
Expand Up @@ -2154,7 +2154,7 @@ func addInstallPanel(c *Console) error {
printToPanel(c.Gui, "Failed to check default route.", installPanel)
return
}
if !installModeOnly && !isDefaultRouteExist {
if !installModeOnly && !isDefaultRouteExist && c.config.Install.ManagementInterface.Method == config.NetworkMethodDHCP {
logrus.Error(ErrMsgNoDefaultRoute)
printToPanel(c.Gui, ErrMsgNoDefaultRoute, installPanel)
return
Expand Down

0 comments on commit 6acbaa7

Please sign in to comment.