From 291ada82ea982ddf2f900793683644d5c13becf9 Mon Sep 17 00:00:00 2001 From: D Ther Date: Thu, 11 Jun 2020 14:26:22 +0630 Subject: [PATCH] ttl --- idm/resource_idm_dns_record.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/idm/resource_idm_dns_record.go b/idm/resource_idm_dns_record.go index a68ccc5..fdd5536 100644 --- a/idm/resource_idm_dns_record.go +++ b/idm/resource_idm_dns_record.go @@ -41,7 +41,7 @@ func resourceIDMDNSRecord() *schema.Resource { Required: true, // Set: schema.HashString, }, - "dnsttl": { + "ttl": { Type: schema.TypeInt, Optional: true, }, @@ -85,7 +85,7 @@ func resourceIDMDNSRecordCreate(d *schema.ResourceData, meta interface{}) error optArgs.Srvrecord = &records } - if _dnsttl, ok := d.GetOkExists("dnsttl"); ok { + if _dnsttl, ok := d.GetOkExists("ttl"); ok { dnsttl := _dnsttl.(int) optArgs.Dnsttl = &dnsttl } @@ -136,7 +136,7 @@ func resourceIDMDNSRecordUpdate(d *schema.ResourceData, meta interface{}) error optArgs.Srvrecord = &records } - if _dnsttl, ok := d.GetOkExists("dnsttl"); ok { + if _dnsttl, ok := d.GetOkExists("ttl"); ok { dnsttl := _dnsttl.(int) optArgs.Dnsttl = &dnsttl } @@ -187,7 +187,7 @@ func resourceIDMDNSRecordRead(d *schema.ResourceData, meta interface{}) error { } if res.Result.Dnsttl != nil { - d.Set("dnsttl", *res.Result.Dnsttl) + d.Set("ttl", *res.Result.Dnsttl) } if res.Result.Dnsclass != nil {