gw api: fix matching secret logic

This commit is contained in:
Simone Gotti 2019-04-05 10:26:35 +02:00
parent 7be0ae205f
commit 25eb200625
1 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ func (h *VariableHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
http.Error(w, err.Error(), http.StatusBadRequest)
return
}
cssecrets, _, err = h.configstoreClient.GetProjectGroupSecrets(ctx, parentRef, tree)
cssecrets, _, err = h.configstoreClient.GetProjectGroupSecrets(ctx, parentRef, true)
if err != nil {
http.Error(w, err.Error(), http.StatusBadRequest)
return
@ -111,7 +111,7 @@ func (h *VariableHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
http.Error(w, err.Error(), http.StatusBadRequest)
return
}
cssecrets, _, err = h.configstoreClient.GetProjectSecrets(ctx, parentRef, tree)
cssecrets, _, err = h.configstoreClient.GetProjectSecrets(ctx, parentRef, true)
if err != nil {
http.Error(w, err.Error(), http.StatusBadRequest)
return