providers/aws: return proper internet gateway when attach fails

pull/20/head
Mitchell Hashimoto 12 years ago
parent 3af16c8faf
commit bd2fe4d145

@ -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

Loading…
Cancel
Save