Skip to content

Commit

Permalink
do not reset default settings of report settings
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Jul 17, 2014
1 parent fe33b20 commit c6b1d3c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/clients/inst_autoinit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,14 @@ def processProfile
Progress.NextStage
Progress.Title(_("Initial Configuration"))
Builtins.y2milestone("Initial Configuration")
tmp = Profile.current.fetch("report",{})
if !tmp.has_key?( "yesno_messages" )
tmp["yesno_messages"] = tmp.fetch("errors",{})
report = Profile.current["report"]
if report && !report.has_key?( "yesno_messages" )
# Set "yesno_messages", but do not reset the other settings
# (bnc#887397)
report = Report.Export # getting all values
report["yesno_messages"] = report.fetch("errors",{})
Report.Import(report) # setting all values
end
Report.Import(tmp)
AutoinstGeneral.Import(Profile.current.fetch("general",{}))
AutoinstGeneral.SetSignatureHandling
AutoinstGeneral.SetMultipathing
Expand Down

0 comments on commit c6b1d3c

Please sign in to comment.