Commit ee2bccc
committed
Read the gateway from stack.yaml in logs
deploy, describe and list all resolve the gateway from the stack file
before falling back to the default, but logs passed an empty string for
the YAML gateway and so always fell back to http://127.0.0.1:8080.
Against a remote gateway this meant logs quietly queried localhost and
reported the result as "Unauthorized access, run faas-cli login", which
reads as an expired token or a missing permission rather than a gateway
mix-up. Passing -f stack.yaml did not help.
Resolve the YAML gateway the same way describe does. Explicit --gateway
and OPENFAAS_URL continue to take precedence.
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>1 parent 873635d commit ee2bccc
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
96 | 112 | | |
97 | 113 | | |
98 | 114 | | |
| |||
0 commit comments