Skip to content

Commit

Permalink
Reset LinuxrcInstallInf after modified
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed May 9, 2017
1 parent 6cfb98b commit a0d52c7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib/installation/clients/inst_install_inf.rb
Expand Up @@ -22,7 +22,10 @@ def main

regurl = Linuxrc.InstallInf("regurl")

fix_regurl(regurl) if need_fix?(regurl)
if need_fix?(regurl)
fix_regurl!(regurl)
Linuxrc.ResetInstallInf
end

Yast::Wizard.CloseDialog if separate_wizard_needed?

Expand All @@ -35,7 +38,7 @@ def need_fix?(url)
url && !valid_url?(url)
end

def fix_regurl(regurl)
def fix_regurl!(regurl)
while regurl && !valid_url?(regurl)
new_url = ::Installation::RegistrationURLDialog.new(regurl).run
case new_url
Expand Down

0 comments on commit a0d52c7

Please sign in to comment.