return error if failed to set tags on Route 53 zone

This commit is contained in:
Clint Shryock 2015-04-01 14:49:50 -05:00
parent a4f72dc8ee
commit 815b79753a
1 changed files with 4 additions and 1 deletions

View File

@ -105,7 +105,10 @@ func resourceAwsRoute53ZoneRead(d *schema.ResourceData, meta interface{}) error
if resp.ResourceTagSet != nil {
tags = resp.ResourceTagSet.Tags
}
d.Set("tags", tagsToMapR53(tags))
if err := d.Set("tags", tagsToMapR53(tags)); err != nil {
return err
}
return nil
}