mirror of
https://github.com/containous/traefik.git
synced 2025-08-24 09:49:31 +03:00
Fix bad condition in ECS provider
This commit is contained in:
@ -205,7 +205,7 @@ func getFuncFirstStringValueV1(labelName string, defaultValue string) func(insta
|
|||||||
// Deprecated
|
// Deprecated
|
||||||
func getFuncFirstBoolValueV1(labelName string, defaultValue bool) func(instances []ecsInstance) bool {
|
func getFuncFirstBoolValueV1(labelName string, defaultValue bool) func(instances []ecsInstance) bool {
|
||||||
return func(instances []ecsInstance) bool {
|
return func(instances []ecsInstance) bool {
|
||||||
if len(instances) < 0 {
|
if len(instances) == 0 {
|
||||||
return defaultValue
|
return defaultValue
|
||||||
}
|
}
|
||||||
return getBoolValueV1(instances[0], labelName, defaultValue)
|
return getBoolValueV1(instances[0], labelName, defaultValue)
|
||||||
|
Reference in New Issue
Block a user