mirror of
https://github.com/hashicorp/vault-action.git
synced 2025-11-10 00:26:55 +00:00
Check the data property in secrets.js
Co-authored-by: Brian Woodward <brian.woodward@gmail.com>
This commit is contained in:
parent
89c2697ec6
commit
78c011015e
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ async function getSecrets(secretRequests, client) {
|
|||
|
||||
let value;
|
||||
if(selector === "*"){
|
||||
value = body.data["data"];
|
||||
value = body.data["data"] != undefined ? body.data["data"] : body.data;
|
||||
} else {
|
||||
if (!selector.match(/.*[\.].*/)) {
|
||||
selector = '"' + selector + '"'
|
||||
|
|
|
|||
Loading…
Reference in a new issue