Skip to content

Commit

Permalink
Small changes from PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
shadtimm committed Nov 19, 2021
1 parent 4e41168 commit 3ce18a3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions infoblox/resource_infoblox_txt_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ func resourceTXTRecord() *schema.Resource {
Delete: resourceTXTRecordDelete,

Schema: map[string]*schema.Schema{
"name": &schema.Schema{
"name": {
Type: schema.TypeString,
Required: true,
Description: "The name of the TXT record.",
},
"text": &schema.Schema{
"text": {
Type: schema.TypeString,
Required: true,
Description: "The text for the record to contain.",
},
"dns_view": &schema.Schema{
"dns_view": {
Type: schema.TypeString,
Optional: true,
Default: "default",
Expand Down Expand Up @@ -92,7 +92,6 @@ func resourceTXTRecordCreate(d *schema.ResourceData, m interface{}) error {
connector := m.(*ibclient.Connector)

objMgr := ibclient.NewObjectManager(connector, "Terraform", tenantID)
// fqdn

recordTXT, err := objMgr.CreateTXTRecord(
recordName,
Expand All @@ -109,7 +108,7 @@ func resourceTXTRecordCreate(d *schema.ResourceData, m interface{}) error {
d.SetId(recordTXT.Ref)

log.Printf("[DEBUG] %s: Creation of TXT Record complete", resourceTXTRecordIDString(d))
return resourceTXTRecordGet(d, m)
return nil
}

func resourceTXTRecordGet(d *schema.ResourceData, m interface{}) error {
Expand Down

0 comments on commit 3ce18a3

Please sign in to comment.