Skip to content

Commit

Permalink
provider-ultradns: assume ttl is present
Browse files Browse the repository at this point in the history
  • Loading branch information
josephholsten committed Sep 8, 2015
1 parent 402a272 commit ad74273
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions builtin/providers/ultradns/resource_ultradns_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ func resourceUltraDNSRecordCreate(d *schema.ResourceData, meta interface{}) erro
rdatas[i] = j.(string)
}
newRecord.RData = rdatas
if ttl, ok := d.GetOk("ttl"); ok {
newRecord.TTL, _ = strconv.Atoi(ttl.(string))
}
ttl := d.Get("ttl").(string)
newRecord.TTL, _ = strconv.Atoi(ttl)

log.Printf("[DEBUG] UltraDNS RRSet create configuration: %#v", newRecord)

Expand Down

0 comments on commit ad74273

Please sign in to comment.