Skip to content

Commit

Permalink
livedns: fix the create
Browse files Browse the repository at this point in the history
Fixes #134
  • Loading branch information
nlewo committed Dec 19, 2022
1 parent ed7469c commit b8e1a18
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 b8e1a18

Please sign in to comment.