Skip to content

Commit

Permalink
revert back to single POST call approach to add templates to the domain
Browse files Browse the repository at this point in the history
  • Loading branch information
RutvikS-crest committed Jan 5, 2022
1 parent 9608177 commit 509df23
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions constellix/resource_constellix_domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 509df23

Please sign in to comment.