Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dc1606a

Browse filesBrowse files
authored
Merge pull request #42046 from thaJeztah/20.10_labels_regex_length_check
[20.10 backport] Check the length of the correct variable #42039
2 parents 148e6c9 + 0e00115 commit dc1606a
Copy full SHA for dc1606a

1 file changed

+1-1Lines changed: 1 addition & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎daemon/logger/loginfo.go‎

Copy file name to clipboardExpand all lines: daemon/logger/loginfo.go
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.