Skip to content

Commit

Permalink
Fixes #36809 - Do not clobber answers provided on the command line wi…
Browse files Browse the repository at this point in the history
…th --certs-regenerate
  • Loading branch information
ehelms committed Jul 18, 2024
1 parent 8e00591 commit 770c943
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions hooks/pre_exit/20-certs_regenerate.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
if module_enabled?('certs') && param('certs', 'regenerate').value == true
answers = kafo.config.answers
answers['certs']['regenerate'] = false
kafo.config.modules.each do |mod|
if mod.identifier == 'certs'
mod.params_hash['regenerate'] = false
end
end

kafo.config.store(answers)
kafo.send(:store_params)
end

0 comments on commit 770c943

Please sign in to comment.