From 3f41515d2b8d8951d70992e0bfc3ec03ea34ce8f Mon Sep 17 00:00:00 2001 From: Brad Sickles Date: Thu, 25 Feb 2016 08:59:01 -0500 Subject: [PATCH] Fixing noop differences in aws_route. --- builtin/providers/aws/resource_aws_route.go | 4 ++++ builtin/providers/aws/resource_aws_route_test.go | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/builtin/providers/aws/resource_aws_route.go b/builtin/providers/aws/resource_aws_route.go index 017978903..034763b72 100644 --- a/builtin/providers/aws/resource_aws_route.go +++ b/builtin/providers/aws/resource_aws_route.go @@ -40,16 +40,19 @@ func resourceAwsRoute() *schema.Resource { "gateway_id": &schema.Schema{ Type: schema.TypeString, Optional: true, + Computed: true, }, "nat_gateway_id": &schema.Schema{ Type: schema.TypeString, Optional: true, + Computed: true, }, "instance_id": &schema.Schema{ Type: schema.TypeString, Optional: true, + Computed: true, }, "instance_owner_id": &schema.Schema{ @@ -60,6 +63,7 @@ func resourceAwsRoute() *schema.Resource { "network_interface_id": &schema.Schema{ Type: schema.TypeString, Optional: true, + Computed: true, }, "origin": &schema.Schema{ diff --git a/builtin/providers/aws/resource_aws_route_test.go b/builtin/providers/aws/resource_aws_route_test.go index 77ae56ca3..a63d91acb 100644 --- a/builtin/providers/aws/resource_aws_route_test.go +++ b/builtin/providers/aws/resource_aws_route_test.go @@ -32,7 +32,7 @@ func TestAccAWSRoute_basic(t *testing.T) { } resource.Test(t, resource.TestCase{ - PreCheck: func() { + PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -95,7 +95,7 @@ func TestAccAWSRoute_changeCidr(t *testing.T) { } resource.Test(t, resource.TestCase{ - PreCheck: func() { + PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -133,7 +133,7 @@ func TestAccAWSRoute_noopdiff(t *testing.T) { } resource.Test(t, resource.TestCase{ - PreCheck: func() { + PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders,