Skip to content

Commit 170341d

Browse files
author
Paul Hinze
committed
providers/aws: go vet fixes in aws_subnet
1 parent 089b5dc commit 170341d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

builtin/providers/aws/resource_aws_subnet.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ func resourceAwsSubnetCreate(d *schema.ResourceData, meta interface{}) error {
6868
// Get the ID and store it
6969
subnet := resp.Subnet
7070
d.SetId(*subnet.SubnetID)
71-
log.Printf("[INFO] Subnet ID: %s", subnet.SubnetID)
71+
log.Printf("[INFO] Subnet ID: %s", *subnet.SubnetID)
7272

7373
// Wait for the Subnet to become available
74-
log.Printf("[DEBUG] Waiting for subnet (%s) to become available", subnet.SubnetID)
74+
log.Printf("[DEBUG] Waiting for subnet (%s) to become available", *subnet.SubnetID)
7575
stateConf := &resource.StateChangeConf{
7676
Pending: []string{"pending"},
7777
Target: "available",

builtin/providers/aws/resource_aws_subnet_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ func TestAccAWSSubnet(t *testing.T) {
1515

1616
testCheck := func(*terraform.State) error {
1717
if *v.CIDRBlock != "10.1.1.0/24" {
18-
return fmt.Errorf("bad cidr: %s", v.CIDRBlock)
18+
return fmt.Errorf("bad cidr: %s", *v.CIDRBlock)
1919
}
2020

2121
if *v.MapPublicIPOnLaunch != true {
22-
return fmt.Errorf("bad MapPublicIpOnLaunch: %t", v.MapPublicIPOnLaunch)
22+
return fmt.Errorf("bad MapPublicIpOnLaunch: %t", *v.MapPublicIPOnLaunch)
2323
}
2424

2525
return nil

0 commit comments

Comments
 (0)