Skip to content

Commit

Permalink
Update subscription plan validation
Browse files Browse the repository at this point in the history
  • Loading branch information
tbroden84 committed Jan 17, 2023
1 parent 67173d2 commit 7794f8f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cloudamqp/resource_cloudamqp_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ func getPlanType(plan string) (string, error) {
case "bunny", "rabbit", "panda", "ape", "hippo", "lion",
// 2020 plans
"squirrel-1",
"hare-1", "hare-3",
"bunny-1", "bunny-3",
"rabbit-1", "rabbit-3", "rabbit-5",
"panda-1", "panda-3", "panda-5",
Expand All @@ -310,7 +311,9 @@ func validatePlanName() schema.SchemaValidateFunc {
return validation.StringInSlice([]string{
"lemur", "tiger",
"bunny", "rabbit", "panda", "ape", "hippo", "lion",
"squirrel-1", "bunny-1", "bunny-3",
"squirrel-1",
"hare-1", "hare-3",
"bunny-1", "bunny-3",
"rabbit-1", "rabbit-3", "rabbit-5",
"panda-1", "panda-3", "panda-5",
"ape-1", "ape-3", "ape-5",
Expand All @@ -334,6 +337,7 @@ func is2020Plan(plan string) bool {
switch plan {
case
"squirrel-1",
"hare-1", "hare-3",
"bunny-1", "bunny-3",
"rabbit-1", "rabbit-3", "rabbit-5",
"panda-1", "panda-3", "panda-5",
Expand Down

0 comments on commit 7794f8f

Please sign in to comment.