Merge pull request #1384 from hashicorp/b-aws-fix-route53-hosted-refresh

provider/aws: Fix refresh issue in Route 53 hosted zone
This commit is contained in:
Clint 2015-04-06 11:11:07 -05:00
commit 23c0fb7695
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func resourceAwsRoute53ZoneRead(d *schema.ResourceData, meta interface{}) error
_, err := r53.GetHostedZone(&route53.GetHostedZoneRequest{ID: aws.String(d.Id())})
if err != nil {
// Handle a deleted zone
if strings.Contains(err.Error(), "404") {
if r53err, ok := err.(aws.APIError); ok && r53err.Code == "NoSuchHostedZone" {
d.SetId("")
return nil
}