Check the length of the correct variable #42039

Signed-off-by: Nathan Carlson <carl4403@umn.edu>
(cherry picked from commit 8d73c1ad68)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Nathan Carlson 2021-02-17 15:59:27 -06:00 committed by Sebastiaan van Stijn
parent df2cfb4d33
commit 0e001154f9
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 1 additions and 1 deletions

View File

@ -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