Skip to content

Commit

Permalink
Merge pull request #135 from go-gandi/livedns-create
Browse files Browse the repository at this point in the history
livedns: fix the create
  • Loading branch information
nlewo committed Dec 23, 2022
2 parents ed7469c + b8e1a18 commit c1c48f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gandi/resource_livedns_domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func resourceLiveDNSDomainCreate(d *schema.ResourceData, meta interface{}) error
return err
}
d.SetId(name)
autosnap := d.Get("autosnap").(bool)
autosnap := d.Get("automatic_snapshots").(bool)
if _, err := client.UpdateDomain(name, livedns.UpdateDomainRequest{AutomaticSnapshots: &autosnap}); err != nil {
return fmt.Errorf("failed to enable automatic snapshots for %s: %w", name, err)
}
Expand Down

0 comments on commit c1c48f2

Please sign in to comment.