From b8e1a18fe426f973029f25079e58561c4dad4e68 Mon Sep 17 00:00:00 2001 From: Antoine Eiche Date: Mon, 19 Dec 2022 10:42:48 +0100 Subject: [PATCH] livedns: fix the create Fixes https://github.com/go-gandi/terraform-provider-gandi/issues/134 --- gandi/resource_livedns_domain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gandi/resource_livedns_domain.go b/gandi/resource_livedns_domain.go index e9ff26cf..e17ef52f 100644 --- a/gandi/resource_livedns_domain.go +++ b/gandi/resource_livedns_domain.go @@ -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) }