From a7c158f0e1e3184461e5ebb583a1065c52d14a43 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 12 Jul 2018 17:40:04 +0200 Subject: [PATCH 1/2] 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) From f0ab2721a5db096ee686496cd9b6c3a391951c6d Mon Sep 17 00:00:00 2001 From: Jonathan Ballet Date: Thu, 12 Jul 2018 17:58:02 +0200 Subject: [PATCH 2/2] Fix path to the debug pprof API --- docs/configuration/api.md | 2 +- docs/configuration/commons.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configuration/api.md b/docs/configuration/api.md index b2db8517a..9da05c7e8 100644 --- a/docs/configuration/api.md +++ b/docs/configuration/api.md @@ -21,7 +21,7 @@ # Enable debug mode. # This will install HTTP handlers to expose Go expvars under /debug/vars and - # pprof profiling data under /debug/pprof. + # pprof profiling data under /debug/pprof/. # Additionally, the log level will be set to DEBUG. # # Optional diff --git a/docs/configuration/commons.md b/docs/configuration/commons.md index 481843362..aa53a5940 100644 --- a/docs/configuration/commons.md +++ b/docs/configuration/commons.md @@ -18,7 +18,7 @@ # Enable debug mode. # This will install HTTP handlers to expose Go expvars under /debug/vars and -# pprof profiling data under /debug/pprof. +# pprof profiling data under /debug/pprof/. # The log level will be set to DEBUG unless `logLevel` is specified. # # Optional