Skip to content

Commit

Permalink
Merge remote-tracking branch 'github/main' into merge-github
Browse files Browse the repository at this point in the history
  • Loading branch information
agutierrez8 committed Jun 22, 2023
2 parents a0a7a86 + 0ad5f0b commit 4025712
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/validators/storage_size_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ func (v StorageSizeValidator) MarkdownDescription(ctx context.Context) string {

//nolint:gocritic // Implements Terraform defined interface
func (v StorageSizeValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse) {
if req.ConfigValue.IsNull() || req.ConfigValue.IsUnknown() {
return
}

input := req.ConfigValue.ValueString()
input = strings.ToLower(input)

Expand Down

0 comments on commit 4025712

Please sign in to comment.