From 65e2b239983cab6b4d013ba43970896130b832b2 Mon Sep 17 00:00:00 2001 From: Jim Rubenstein Date: Mon, 3 Aug 2020 14:28:21 -0400 Subject: [PATCH] Replaces "@" with "" for targeting root dns record --- models/model_managed_dns_record_actions.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/models/model_managed_dns_record_actions.go b/models/model_managed_dns_record_actions.go index 07a6fa0..c635ff7 100644 --- a/models/model_managed_dns_record_actions.go +++ b/models/model_managed_dns_record_actions.go @@ -31,7 +31,13 @@ func (record *ManagedDNSRecordActions) ToMap() map[string]interface{} { log.Println("Inside model: recordmap values: ", recordMap) log.Println("RECORD VAlues inside model: ", record) - A(recordMap, "name", record.Name) + + if record.Name == "@" { + recordMap["name"] = "" + } else { + A(recordMap, "name", record.Name) + } + A(recordMap, "id", record.IdUpdate) A(recordMap, "value", record.Value) A(recordMap, "type", record.Type)