Skip to content

Commit 7b8d789

Browse files
authored
Add special case for "other" platform (#262)
1 parent 577bcca commit 7b8d789

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sentry/resource_sentry_project.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ func validatePlatform(i interface{}, path cty.Path) diag.Diagnostics {
351351
var diagnostics diag.Diagnostics
352352

353353
v := i.(string)
354+
if v == "other" {
355+
return nil
356+
}
357+
354358
url := fmt.Sprintf(
355359
"https://docs.sentry.io/_platforms/%s.json",
356360
strings.Replace(v, "-", "/", 1),

0 commit comments

Comments
 (0)