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
|
@ -61,7 +61,7 @@ func TestConsulCatalogGetAttribute(t *testing.T) {
|
|||
"traefik.backend.weight=42",
|
||||
},
|
||||
key: "backend.weight",
|
||||
defaultValue: "",
|
||||
defaultValue: "0",
|
||||
expected: "42",
|
||||
},
|
||||
{
|
||||
|
@ -70,8 +70,8 @@ func TestConsulCatalogGetAttribute(t *testing.T) {
|
|||
"traefik.backend.wei=42",
|
||||
},
|
||||
key: "backend.weight",
|
||||
defaultValue: "",
|
||||
expected: "",
|
||||
defaultValue: "0",
|
||||
expected: "0",
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue