Check the length of the correct variable #42039
Signed-off-by: Nathan Carlson <carl4403@umn.edu>
This commit is contained in:
parent
546c33cede
commit
8d73c1ad68
|
@ -42,7 +42,7 @@ func (info *Info) ExtraAttributes(keyMod func(string) string) (map[string]string
|
||||||
}
|
}
|
||||||
|
|
||||||
labelsRegex, ok := info.Config["labels-regex"]
|
labelsRegex, ok := info.Config["labels-regex"]
|
||||||
if ok && len(labels) > 0 {
|
if ok && len(labelsRegex) > 0 {
|
||||||
re, err := regexp.Compile(labelsRegex)
|
re, err := regexp.Compile(labelsRegex)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in New Issue