Skip to content

Commit

Permalink
Update lib/puppet_x/vault_lookup/lookup.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Romain Tartière <[email protected]>
  • Loading branch information
2 people authored and zilchms committed Feb 20, 2024
1 parent 1fed879 commit e639597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet_x/vault_lookup/lookup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def self.lookup(cache:,
return prior_result
end

auth_method = ENV['VAULT_AUTH_METHOD'] || 'cert' if auth_method.nil?
auth_method = ENV.fetch('VAULT_AUTH_METHOD', 'cert') if auth_method.nil?
role_id = ENV.fetch('VAULT_ROLE_ID', nil) if role_id.nil?
secret_id = ENV.fetch('VAULT_SECRET_ID', nil) if secret_id.nil?
cert_path_segment = 'v1/auth/cert/' if cert_path_segment.nil?
Expand Down

0 comments on commit e639597

Please sign in to comment.