Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
use generic map instead of specific args
Browse files Browse the repository at this point in the history
  • Loading branch information
cachedout committed Apr 21, 2021
1 parent f65df2c commit 573a41d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vars/getVaultSecret.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ def call(secret) {
return readSecret(secret, 'vault-role-id', 'vault-secret-id')
}

def readSecret(secret, role_id, secret_id) {
def readSecret(Map args = [:]) {
def secret = args?.secret
def role_id = args?.role_id
def secret_id = args?.secret_id
def props = null
log(level: 'INFO', text: 'getVaultSecret: Getting secrets')
readSecretWrapperWithParams(role_id, secret_id) {
Expand Down

0 comments on commit 573a41d

Please sign in to comment.