Skip to content

Commit

Permalink
Re-import general settings
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Sep 28, 2022
1 parent 7c57dc5 commit 95176bf
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/clients/inst_autopost.rb
Expand Up @@ -70,10 +70,10 @@ def main

Builtins.y2milestone("Steps: %1", steps)

general_settings = Profile.current.fetch("general", {})
AutoinstGeneral.Import(general_settings) unless general_settings.empty?

import_general_settings
askDialog
# re-import general settings just in case they were modified by the <ask-list/>
import_general_settings

importer = Y2Autoinstallation::Importer.new(Profile.current)
modules_to_write.each do |description|
Expand Down Expand Up @@ -129,6 +129,11 @@ def dirname(filePath)
)
ret
end

def import_general_settings
general_settings = Profile.current.fetch("general", {})
AutoinstGeneral.Import(general_settings) unless general_settings.empty?
end
end
end

Expand Down

0 comments on commit 95176bf

Please sign in to comment.