Skip to content

Commit

Permalink
Merge pull request #32937 from hashicorp/b-elasticache-version-error
Browse files Browse the repository at this point in the history
elasicache/replication_group: Better version error message
  • Loading branch information
YakDriver authored Aug 9, 2023
2 parents 74f371d + a18589a commit 4955f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/elasticache/engine_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func validRedisVersionString(v interface{}, k string) (ws []string, errors []err
value := v.(string)

if !redisVersionRegexp.MatchString(value) {
errors = append(errors, fmt.Errorf("%s: Redis versions must match <major>.<minor> when using version 6 or higher, or <major>.<minor>.<patch>", k))
errors = append(errors, fmt.Errorf("%s: %s is invalid. For Redis v6 or higher, use <major>.<minor>. For Redis v5 or lower, use <major>.<minor>.<patch>.", k, value))
}

return
Expand Down

0 comments on commit 4955f25

Please sign in to comment.