Skip to content

Commit

Permalink
fix: using correct struct field
Browse files Browse the repository at this point in the history
  • Loading branch information
Flo4604 committed Oct 27, 2024
1 parent f8c0e48 commit 36501dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/api/dynamic_secrets/get_secret_by_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func CallGetDynamicSecretByNameV1(httpClient *resty.Client, request GetDynamicSe
"path": request.SecretPath,
})

res, err := req.Get("/v1/dynamic-secrets/" + request.SecretName)
res, err := req.Get("/v1/dynamic-secrets/" + request.DynamicSecretName)

if err != nil {
return GetDynamicSecretByNameV1Response{}, errors.NewRequestError(callGetDynamicSecretByNameV1Operation, err)
Expand Down
2 changes: 1 addition & 1 deletion packages/api/dynamic_secrets/list_lease.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func CallListDynamicSecretLeaseV1(httpClient *resty.Client, request ListDynamicS
"path": request.SecretPath,
})

res, err := req.Get("/v1/dynamic-secrets/" + request.SecretName + "/leases")
res, err := req.Get("/v1/dynamic-secrets/" + request.DynamicSecretName + "/leases")

if err != nil {
return ListDynamicSecretLeaseV1Response{}, errors.NewRequestError(callListDynamicSecretLeaseV1Operation, err)
Expand Down

0 comments on commit 36501dd

Please sign in to comment.