From a5c884f5aa49c81c5547bd962900c514b8d98022 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 9 Sep 2014 13:43:03 -0700 Subject: [PATCH] fmt --- builtin/providers/aws/resource_aws_instance.go | 1 - builtin/providers/google/resource_compute_instance.go | 2 +- builtin/providers/google/resource_compute_instance_test.go | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/builtin/providers/aws/resource_aws_instance.go b/builtin/providers/aws/resource_aws_instance.go index b69831715..ffe2256ea 100644 --- a/builtin/providers/aws/resource_aws_instance.go +++ b/builtin/providers/aws/resource_aws_instance.go @@ -117,7 +117,6 @@ func resourceAwsInstance() *schema.Resource { Type: schema.TypeBool, Optional: true, }, - }, } } diff --git a/builtin/providers/google/resource_compute_instance.go b/builtin/providers/google/resource_compute_instance.go index 7e332dc5a..52b97c014 100644 --- a/builtin/providers/google/resource_compute_instance.go +++ b/builtin/providers/google/resource_compute_instance.go @@ -61,7 +61,7 @@ func resourceComputeInstance() *schema.Resource { Optional: true, }, "auto_delete": &schema.Schema{ - Type: schema.TypeBool, + Type: schema.TypeBool, Optional: true, }, }, diff --git a/builtin/providers/google/resource_compute_instance_test.go b/builtin/providers/google/resource_compute_instance_test.go index 5538da8ea..af996763e 100644 --- a/builtin/providers/google/resource_compute_instance_test.go +++ b/builtin/providers/google/resource_compute_instance_test.go @@ -2,8 +2,8 @@ package google import ( "fmt" - "testing" "strings" + "testing" "code.google.com/p/google-api-go-client/compute/v1" "github.com/hashicorp/terraform/helper/resource" @@ -195,7 +195,7 @@ func testAccCheckComputeInstanceDisk(instance *compute.Instance, source string, } for _, disk := range instance.Disks { - if strings.LastIndex(disk.Source, "/"+source) == (len(disk.Source) - len(source) - 1) && disk.AutoDelete == delete && disk.Boot == boot{ + if strings.LastIndex(disk.Source, "/"+source) == (len(disk.Source)-len(source)-1) && disk.AutoDelete == delete && disk.Boot == boot { return nil } }