Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix report of AutoYaST strict IP check #1346

Open
wants to merge 1 commit into
base: SLE-12-SP5
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 7 additions & 15 deletions src/clients/lan_auto.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,14 @@ def main
Builtins.y2error("Writing lan config failed") if !result
@ret &&= result

if Ops.get(LanItems.autoinstall_settings, "strict_IP_check_timeout")
if Lan.isAnyInterfaceDown
@timeout = Ops.get_integer(
LanItems.autoinstall_settings,
"strict_IP_check_timeout",
0
)
Builtins.y2debug("timeout %1", @timeout)
@error_text = _("Configuration Error: uninitialized interface.")
if @timeout == 0
Popup.Error(@error_text)
else
Popup.TimedError(@error_text, @timeout)
end
end
timeout = LanItems.autoinstall_settings.fetch("strict_IP_check_timeout", -1)

if (timeout >= 0) && Lan.isAnyInterfaceDown
Builtins.y2debug("timeout %1", timeout)
error_text = _("Configuration Error: uninitialized interface.")
timeout == 0 ? Popup.Error(error_text) : Popup.TimedError(error_text, timeout)
end

Progress.set(@progress_orig)
else
Builtins.y2error("unknown function: %1", @func)
Expand Down