Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/puppet/functions/vault_lookup/lookup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ def lookup(path,
cert_role,
namespace)
when 'approle'
raise Puppet::Error, 'role_id and VAULT_ROLE_ID are both nil' if vault_role_id.nil?
raise Puppet::Error, 'secret_id and VAULT_SECRET_ID are both nil' if vault_secret_id.nil?
raise Puppet::Error, 'role_id and VAULT_ROLE_ID are both nil' if role_id.nil?
raise Puppet::Error, 'secret_id and VAULT_SECRET_ID are both nil' if secret_id.nil?
token = get_approle_auth_token(client,
vault_base_uri,
approle_path_segment,
Expand Down