From a98873d6c982f73ed6bd9f29f2f4ee56393ade4a Mon Sep 17 00:00:00 2001 From: Riley Karson Date: Tue, 28 May 2019 17:26:42 +0000 Subject: [PATCH] Upgrade Region Backend Service state Signed-off-by: Modular Magician --- google-beta/resource_compute_region_backend_service.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/google-beta/resource_compute_region_backend_service.go b/google-beta/resource_compute_region_backend_service.go index defa54010c..3eed1d11ea 100644 --- a/google-beta/resource_compute_region_backend_service.go +++ b/google-beta/resource_compute_region_backend_service.go @@ -23,9 +23,14 @@ import ( "github.com/hashicorp/terraform/helper/schema" "github.com/hashicorp/terraform/helper/validation" + "github.com/hashicorp/terraform/terraform" "google.golang.org/api/compute/v1" ) +func migrateStateNoop(v int, is *terraform.InstanceState, meta interface{}) (*terraform.InstanceState, error) { + return is, nil +} + func resourceComputeRegionBackendService() *schema.Resource { return &schema.Resource{ Create: resourceComputeRegionBackendServiceCreate, @@ -44,6 +49,7 @@ func resourceComputeRegionBackendService() *schema.Resource { }, SchemaVersion: 1, + MigrateState: migrateStateNoop, Schema: map[string]*schema.Schema{ "health_checks": {