Merge pull request #4392 from hashicorp/b-vpc-endpoint-updates

provider/aws: Update VPC Endpoint to correctly set route table ids, a…
This commit is contained in:
Clint 2015-12-22 11:44:49 -06:00
commit 791b2f0ccd
1 changed files with 4 additions and 2 deletions

View File

@ -103,7 +103,9 @@ func resourceAwsVPCEndpointRead(d *schema.ResourceData, meta interface{}) error
d.Set("vpc_id", vpce.VpcId)
d.Set("policy", normalizeJson(*vpce.PolicyDocument))
d.Set("service_name", vpce.ServiceName)
d.Set("route_table_ids", vpce.RouteTableIds)
if err := d.Set("route_table_ids", aws.StringValueSlice(vpce.RouteTableIds)); err != nil {
return err
}
return nil
}
@ -142,7 +144,7 @@ func resourceAwsVPCEndpointUpdate(d *schema.ResourceData, meta interface{}) erro
}
log.Printf("[DEBUG] VPC Endpoint %q updated", input.VpcEndpointId)
return nil
return resourceAwsVPCEndpointRead(d, meta)
}
func resourceAwsVPCEndpointDelete(d *schema.ResourceData, meta interface{}) error {