From eea4fd018c375bdb3450466d478a80b18ba1aa8b Mon Sep 17 00:00:00 2001 From: djarbz <30350993+djarbz@users.noreply.github.com> Date: Thu, 12 Oct 2023 13:49:24 -0500 Subject: [PATCH] Ignore error message case in comparison for ignorable messages. --- internal/provider/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/helpers.go b/internal/provider/helpers.go index 7709ddf9b..1ae864a87 100644 --- a/internal/provider/helpers.go +++ b/internal/provider/helpers.go @@ -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 } }