Skip to content
This repository was archived by the owner on Mar 10, 2023. It is now read-only.

Commit ca93a96

Browse files
Waterdripsalexellis
authored andcommitted
Remove a print of customers in edge-auth
This removes a printing of the customers in edge-auth. Signed-off-by: Alistair Hey <[email protected]>
1 parent 63eb696 commit ca93a96

File tree

6 files changed

+35
-6
lines changed

6 files changed

+35
-6
lines changed

edge-auth/Gopkg.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

edge-auth/Gopkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[[constraint]]
66
name = "github.com/openfaas/openfaas-cloud"
7-
version = "0.13.0"
7+
version = "0.14.2"
88

99
[prune]
1010
go-tests = true

edge-auth/handlers/query.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ func MakeQueryHandler(config *Config, protected []string, restrictedPrefix []str
3030
customersURL := os.Getenv("customers_url")
3131

3232
customers := sdk.NewCustomers(customersPath, customersURL)
33-
customers.Fetch()
33+
if err := customers.Fetch(); err != nil {
34+
log.Printf("Unable to fetch customers from configured source: %s", err)
35+
return func(w http.ResponseWriter, r *http.Request) {
36+
w.WriteHeader(http.StatusInternalServerError)
37+
}
38+
}
39+
3440

3541
return func(w http.ResponseWriter, r *http.Request) {
3642
query := r.URL.Query()

edge-auth/vendor/github.com/openfaas/openfaas-cloud/sdk/auth.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

edge-auth/vendor/github.com/openfaas/openfaas-cloud/sdk/customers.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

edge-auth/vendor/github.com/openfaas/openfaas-cloud/sdk/event.go

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)