diff --git a/constellix/resource_constellix_domain.go b/constellix/resource_constellix_domain.go index fab8e35..26e5376 100644 --- a/constellix/resource_constellix_domain.go +++ b/constellix/resource_constellix_domain.go @@ -391,13 +391,7 @@ func resourceConstellixDNSUpdate(d *schema.ResourceData, m interface{}) error { } if d.HasChange("template") { - templatePayload := map[string]int{ - "template": d.Get("template").(int), - } - _, err := constellixClient.UpdatebyID(templatePayload, "v1/domains/"+dn) - if err != nil { - return err - } + domainAttr.Template = d.Get("template").(int) } if d.HasChange("tags") {