Skip to content
This repository was archived by the owner on Jun 18, 2022. It is now read-only.

Commit 3a4595e

Browse files
author
Alena Prokharchyk
authored
Merge pull request #251 from cjellick/fix-fix-label-fix
Trim key and value for user entered labels
2 parents 77af505 + aaaa3f7 commit 3a4595e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utilities/config/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func Labels() map[string]string {
206206
logrus.Error(err)
207207
}
208208
for k, v := range m {
209-
ret[k] = v[0]
209+
ret[strings.TrimSpace(k)] = strings.TrimSpace(v[0])
210210
}
211211
}
212212
return ret

0 commit comments

Comments
 (0)