Merge branch 'v1.6' into 'v1.7'

This commit is contained in:
Fernandez Ludovic 2018-07-12 19:24:11 +02:00
commit c7e008f57a
3 changed files with 3 additions and 3 deletions

View file

@ -228,7 +228,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)