From a7c158f0e1e3184461e5ebb583a1065c52d14a43 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 12 Jul 2018 17:40:04 +0200 Subject: [PATCH] Fix bad condition in ECS provider --- provider/ecs/deprecated_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/ecs/deprecated_config.go b/provider/ecs/deprecated_config.go index 2bde17dec..528a54591 100644 --- a/provider/ecs/deprecated_config.go +++ b/provider/ecs/deprecated_config.go @@ -205,7 +205,7 @@ func getFuncFirstStringValueV1(labelName string, defaultValue string) func(insta // Deprecated func getFuncFirstBoolValueV1(labelName string, defaultValue bool) func(instances []ecsInstance) bool { return func(instances []ecsInstance) bool { - if len(instances) < 0 { + if len(instances) == 0 { return defaultValue } return getBoolValueV1(instances[0], labelName, defaultValue)