Skip to content

Commit

Permalink
providers/ultradns: catch issues setting records
Browse files Browse the repository at this point in the history
  • Loading branch information
josephholsten committed Oct 6, 2015
1 parent 08e14eb commit a95a46c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion builtin/providers/ultradns/resource_ultradns_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ func resourceUltraDNSRecordRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("Couldn't find UltraDNS RRSet: %s", err)
}
rec := rrsets[0]
d.Set("rdata", rec.RData)
err := d.Set("rdata", rec.RData)
if err != nil {
return fmt.Errorf("[DEBUG] Error setting records: %#v", err)
}
d.Set("ttl", rec.TTL)

if rec.OwnerName == "" {
Expand Down

0 comments on commit a95a46c

Please sign in to comment.