From 170341d38ed9a975d2cfc6a1906deb2d815cab28 Mon Sep 17 00:00:00 2001 From: Paul Hinze Date: Thu, 5 Mar 2015 14:43:52 -0600 Subject: [PATCH] providers/aws: go vet fixes in aws_subnet --- builtin/providers/aws/resource_aws_subnet.go | 4 ++-- builtin/providers/aws/resource_aws_subnet_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/builtin/providers/aws/resource_aws_subnet.go b/builtin/providers/aws/resource_aws_subnet.go index fd7ac2e06..e09fb8bc4 100644 --- a/builtin/providers/aws/resource_aws_subnet.go +++ b/builtin/providers/aws/resource_aws_subnet.go @@ -68,10 +68,10 @@ func resourceAwsSubnetCreate(d *schema.ResourceData, meta interface{}) error { // Get the ID and store it subnet := resp.Subnet d.SetId(*subnet.SubnetID) - log.Printf("[INFO] Subnet ID: %s", subnet.SubnetID) + log.Printf("[INFO] Subnet ID: %s", *subnet.SubnetID) // Wait for the Subnet to become available - log.Printf("[DEBUG] Waiting for subnet (%s) to become available", subnet.SubnetID) + log.Printf("[DEBUG] Waiting for subnet (%s) to become available", *subnet.SubnetID) stateConf := &resource.StateChangeConf{ Pending: []string{"pending"}, Target: "available", diff --git a/builtin/providers/aws/resource_aws_subnet_test.go b/builtin/providers/aws/resource_aws_subnet_test.go index d06b5b31e..77dfeccf0 100644 --- a/builtin/providers/aws/resource_aws_subnet_test.go +++ b/builtin/providers/aws/resource_aws_subnet_test.go @@ -15,11 +15,11 @@ func TestAccAWSSubnet(t *testing.T) { testCheck := func(*terraform.State) error { if *v.CIDRBlock != "10.1.1.0/24" { - return fmt.Errorf("bad cidr: %s", v.CIDRBlock) + return fmt.Errorf("bad cidr: %s", *v.CIDRBlock) } if *v.MapPublicIPOnLaunch != true { - return fmt.Errorf("bad MapPublicIpOnLaunch: %t", v.MapPublicIPOnLaunch) + return fmt.Errorf("bad MapPublicIpOnLaunch: %t", *v.MapPublicIPOnLaunch) } return nil