Merge branch 'v1.6' into 'v1.7'
This commit is contained in:
commit
c7e008f57a
3 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
# Enable debug mode.
|
# Enable debug mode.
|
||||||
# This will install HTTP handlers to expose Go expvars under /debug/vars and
|
# 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.
|
# Additionally, the log level will be set to DEBUG.
|
||||||
#
|
#
|
||||||
# Optional
|
# Optional
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
# Enable debug mode.
|
# Enable debug mode.
|
||||||
# This will install HTTP handlers to expose Go expvars under /debug/vars and
|
# 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.
|
# The log level will be set to DEBUG unless `logLevel` is specified.
|
||||||
#
|
#
|
||||||
# Optional
|
# Optional
|
||||||
|
|
|
@ -228,7 +228,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)
|
||||||
|
|
Loading…
Reference in a new issue