Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 34ed21a

Browse files
authored
Merge pull request #42044 from nathanlcarlson/labels_regex_length_check
Check the length of the correct variable #42039 Upstream-commit: 8b6d9eaa5552f6b4a21e1aed90369fed45361d25 Component: engine
2 parents a46c678 + f370d14 commit 34ed21a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/engine/daemon/logger/loginfo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (info *Info) ExtraAttributes(keyMod func(string) string) (map[string]string
4242
}
4343

4444
labelsRegex, ok := info.Config["labels-regex"]
45-
if ok && len(labels) > 0 {
45+
if ok && len(labelsRegex) > 0 {
4646
re, err := regexp.Compile(labelsRegex)
4747
if err != nil {
4848
return nil, err

0 commit comments

Comments
 (0)