consul/kv.tmpl: weight default value should be a int (#826)
* consul/kv.tmpl: weight default value should be a int Fix #821 * Use 0 as default weight in all backends
This commit is contained in:
parent
fe1b982d13
commit
a8cb905255
8 changed files with 34 additions and 34 deletions
|
@ -408,7 +408,7 @@ func TestKVLoadConfig(t *testing.T) {
|
|||
},
|
||||
{
|
||||
Key: "traefik/backends/backend.with.dot.too/servers/server.with.dot/weight",
|
||||
Value: []byte("1"),
|
||||
Value: []byte("0"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -420,7 +420,7 @@ func TestKVLoadConfig(t *testing.T) {
|
|||
Servers: map[string]types.Server{
|
||||
"server.with.dot": {
|
||||
URL: "http://172.17.0.2:80",
|
||||
Weight: 1,
|
||||
Weight: 0,
|
||||
},
|
||||
},
|
||||
CircuitBreaker: nil,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue