Ignore error message case in comparison for ignorable messages. (#583)

Co-authored-by: Martin <Junkern@users.noreply.github.com>
This commit is contained in:
djarbz 2025-04-11 05:08:17 -05:00 committed by GitHub
parent f0dd96dbcd
commit cc276ca937
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -127,7 +127,7 @@ func testCheckLabelMap(name string, partialKey string, expectedLabels map[string
// message to ignore. Returns true if so, false otherwise (also if no ignorable message is given)
func containsIgnorableErrorMessage(errorMsg string, ignorableErrorMessages ...string) bool {
for _, ignorableErrorMessage := range ignorableErrorMessages {
if strings.Contains(errorMsg, ignorableErrorMessage) {
if strings.Contains(strings.ToLower(errorMsg), strings.ToLower(ignorableErrorMessage)) {
return true
}
}