Skip to content

Commit

Permalink
Update app/models/foreman_salt/concerns/host_managed_extensions.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Nadja Heitmann <[email protected]>
  • Loading branch information
bastian-src and nadjaheitmann authored Oct 14, 2024
1 parent 40ebbf9 commit bb2f85d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/foreman_salt/concerns/host_managed_extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ def queue_remove_salt_minion
def generate_salt_autosign_key
if salt_autosign_key.nil?
Rails.logger.info("Generate salt autosign key for #{fqdn}")
key = generate_provisioning_key
self.salt_autosign_key = key
self.salt_autosign_key = generate_provisioning_key
else
Rails.logger.info("Use existing salt autosign key for #{fqdn}")
end
Expand Down

0 comments on commit bb2f85d

Please sign in to comment.