mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-23 16:19:42 -05:00
Ignore error message case in comparison for ignorable messages. (#583)
Co-authored-by: Martin <Junkern@users.noreply.github.com>
This commit is contained in:
parent
f0dd96dbcd
commit
cc276ca937
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
// message to ignore. Returns true if so, false otherwise (also if no ignorable message is given)
|
||||||
func containsIgnorableErrorMessage(errorMsg string, ignorableErrorMessages ...string) bool {
|
func containsIgnorableErrorMessage(errorMsg string, ignorableErrorMessages ...string) bool {
|
||||||
for _, ignorableErrorMessage := range ignorableErrorMessages {
|
for _, ignorableErrorMessage := range ignorableErrorMessages {
|
||||||
if strings.Contains(errorMsg, ignorableErrorMessage) {
|
if strings.Contains(strings.ToLower(errorMsg), strings.ToLower(ignorableErrorMessage)) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue