Skip to content

Commit

Permalink
Fix test failures.
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Wilczynski <[email protected]>
  • Loading branch information
kwilczynski committed Aug 1, 2016
1 parent 6d927a4 commit 4648a97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions builtin/providers/aws/resource_aws_vpn_gateway_attachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func resourceAwsVpnGatewayAttachmentCreate(d *schema.ResourceData, meta interfac

_, err = stateConf.WaitForState()
if err != nil {
fmt.Errorf("Error waiting for VPN Gateway %q to attach to VPC %q: %s",
return fmt.Errorf("Error waiting for VPN Gateway %q to attach to VPC %q: %s",
vgwId, vpcId, err)
}
log.Printf("[DEBUG] VPN Gateway %q attached to VPC %q.", vgwId, vpcId)
Expand Down Expand Up @@ -157,7 +157,7 @@ func resourceAwsVpnGatewayAttachmentDelete(d *schema.ResourceData, meta interfac

_, err = stateConf.WaitForState()
if err != nil {
fmt.Errorf("Error waiting for VPN Gateway %q to detach from VPC %q: %s",
return fmt.Errorf("Error waiting for VPN Gateway %q to detach from VPC %q: %s",
vgwId, vpcId, err)
}
log.Printf("[DEBUG] VPN Gateway %q detached from VPC %q.", vgwId, vpcId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func testAccCheckVpnGatewayAttachmentDestroy(s *terraform.State) error {
vgw := resp.VpnGateways[0]
if *vgw.VpcAttachments[0].State != "detached" {
return fmt.Errorf("Expected VPN Gateway %q to be in detached state, but got: %q",
*vgw.VpcAttachments[0].State)
vgwId, *vgw.VpcAttachments[0].State)
}
}

Expand Down

0 comments on commit 4648a97

Please sign in to comment.