Merge pull request #42044 from nathanlcarlson/labels_regex_length_check
Check the length of the correct variable #42039
This commit is contained in:
commit
8b6d9eaa55
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ func (info *Info) ExtraAttributes(keyMod func(string) string) (map[string]string
|
|||
}
|
||||
|
||||
labelsRegex, ok := info.Config["labels-regex"]
|
||||
if ok && len(labels) > 0 {
|
||||
if ok && len(labelsRegex) > 0 {
|
||||
re, err := regexp.Compile(labelsRegex)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Reference in a new issue