From 042818af35961be7f25e7a33b4a5bd4d53cf62f0 Mon Sep 17 00:00:00 2001 From: Rutvik Shiyani <88027613+RutvikS-crest@users.noreply.github.com> Date: Wed, 5 Jan 2022 17:18:18 +0530 Subject: [PATCH] Update resource_constellix_domain.go --- constellix/resource_constellix_domain.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/constellix/resource_constellix_domain.go b/constellix/resource_constellix_domain.go index 1da6107..fab8e35 100644 --- a/constellix/resource_constellix_domain.go +++ b/constellix/resource_constellix_domain.go @@ -194,6 +194,8 @@ func resourceConstellixDNSImport(d *schema.ResourceData, m interface{}) ([]*sche if obj.Exists("template") && obj.S("template").String() != "{}" { d.Set("template", stripQuotes(obj.S("template").String())) + } else { + d.Set("template", 0) } if obj.S("tags").Data() != nil {