From 25eb20062565df03970c655ad0f45b34ca10b7fe Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Fri, 5 Apr 2019 10:26:35 +0200 Subject: [PATCH] gw api: fix matching secret logic --- internal/services/gateway/api/variable.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/services/gateway/api/variable.go b/internal/services/gateway/api/variable.go index 6c8d488..f5bd077 100644 --- a/internal/services/gateway/api/variable.go +++ b/internal/services/gateway/api/variable.go @@ -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