parent
9ec28d26a8
commit
ab7cbb1cf9
|
@ -613,7 +613,7 @@ func validateIAMPolicyJson(v interface{}, k string) (ws []string, errors []error
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if value[:1] != "{" {
|
if value[:1] != "{" {
|
||||||
errors = append(errors, fmt.Errorf("%q conatains an invalid JSON policy", k))
|
errors = append(errors, fmt.Errorf("%q contains an invalid JSON policy", k))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if _, err := normalizeJsonString(v); err != nil {
|
if _, err := normalizeJsonString(v); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue