Skip to content

Commit

Permalink
Merge branch 'f-iam-policy-allow-whitespace' of https://github.com/ha…
Browse files Browse the repository at this point in the history
…shicorp/terraform-provider-aws into f-iam-policy-allow-whitespace
  • Loading branch information
YakDriver committed Mar 26, 2024
2 parents c1f2c7f + cd9b810 commit 0229a94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/verify/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func ValidIAMPolicyJSON(v interface{}, k string) (ws []string, errors []error) {
}

if first := value[:1]; first != "{" {
switch value[:1] {
switch first {
case " ", "\t", "\r", "\n":
errors = append(errors, fmt.Errorf("%q contains an invalid JSON policy: leading space characters are not allowed", k))
case `"`:
Expand Down

0 comments on commit 0229a94

Please sign in to comment.