Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
Do not validate INTERNAL_MANAGED backend service capacity. (#5484) (#415
Browse files Browse the repository at this point in the history
)

* Do not validate INTERNAL_MANAGED backend service capacity.

* remove test expecting this behavior.

* remove a bunch of dead code that the linter complained about.

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Dec 1, 2021
1 parent a1a7df2 commit 30b9fba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions converters/google/resources/compute_region_backend_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ func customDiffRegionBackendService(_ context.Context, d *schema.ResourceDiff, m
switch d.Get("load_balancing_scheme").(string) {
case "INTERNAL", "EXTERNAL":
return validateNonManagedBackendServiceBackends(backends, d)
case "INTERNAL_MANAGED":
return nil
default:
return validateManagedBackendServiceBackends(backends, d)
}
Expand Down

0 comments on commit 30b9fba

Please sign in to comment.