From 573a41dd9f1befb5977e9b7075a68a0b48618a71 Mon Sep 17 00:00:00 2001 From: Mike Place Date: Wed, 21 Apr 2021 13:00:20 +0200 Subject: [PATCH] use generic map instead of specific args --- vars/getVaultSecret.groovy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vars/getVaultSecret.groovy b/vars/getVaultSecret.groovy index 5036f97a68..3080075314 100644 --- a/vars/getVaultSecret.groovy +++ b/vars/getVaultSecret.groovy @@ -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) {