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 Oct 6, 2023
1 parent a45ac09 commit c4ac883
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 c4ac883

Please sign in to comment.