Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix args order in strings.Contains in es-rollover (#3324)
If we do `strings.Contains("resource_already_exists_exception", errorMap["type"].(string))`, we're basically doing `"resource_already_exists_exception" == errorMap["type"].(string)`. I would assume that we intended to test whether `errorMap["type"]` contains `"resource_already_exists_exception"` as a substring, so the reverse `strings.Contains` order is more applicable here. Signed-off-by: Pavol Loffay <[email protected]> Co-authored-by: Iskander (Alex) Sharipov <[email protected]> Co-authored-by: Albert <[email protected]>
- Loading branch information