Skip to content

Commit

Permalink
Spell target correctly (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanbrainard authored Apr 11, 2023
1 parent 3a83337 commit a74bc62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions heroku/resource_heroku_review_app_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
)

const (
DeployTargetTypeSpace = "space"
DeployTargeTypeRegion = "region"
DeployTargetTypeSpace = "space"
DeployTargetTypeRegion = "region"
)

func resourceHerokuReviewAppConfig() *schema.Resource {
Expand Down Expand Up @@ -57,7 +57,7 @@ func resourceHerokuReviewAppConfig() *schema.Resource {
"type": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice([]string{DeployTargetTypeSpace, DeployTargeTypeRegion}, false),
ValidateFunc: validation.StringInSlice([]string{DeployTargetTypeSpace, DeployTargetTypeRegion}, false),
},
},
},
Expand Down Expand Up @@ -334,7 +334,7 @@ func resourceHerokuReviewAppConfigRead(ctx context.Context, d *schema.ResourceDa
if reviewAppConfig.DeployTarget != nil {
var deployTargetId string
switch reviewAppConfig.DeployTarget.Type {
case DeployTargeTypeRegion:
case DeployTargetTypeRegion:
// Lookup region info as the /review-app-config endpoint returns the region UUID
// for the deploy target ID instead of the name (ex. 'us').
region, regionGetErr := client.RegionInfo(ctx, reviewAppConfig.DeployTarget.ID)
Expand Down

0 comments on commit a74bc62

Please sign in to comment.