Skip to content

Commit

Permalink
providers/aws: return proper internet gateway when attach fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Jul 13, 2014
1 parent 3af16c8 commit bd2fe4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/providers/aws/resource_aws_internet_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func resource_aws_internet_gateway_update(
if attr, ok := d.Attributes["vpc_id"]; ok && attr.New != "" {
err := resource_aws_internet_gateway_attach(ec2conn, s, attr.New)
if err != nil {
return s, err
return rs, err
}

rs.Attributes["vpc_id"] = attr.New
Expand Down

0 comments on commit bd2fe4d

Please sign in to comment.