diff --git a/gandi/resource_email_forwarding.go b/gandi/resource_email_forwarding.go index 5050e93b..24c927bd 100644 --- a/gandi/resource_email_forwarding.go +++ b/gandi/resource_email_forwarding.go @@ -82,8 +82,8 @@ func resourceEmailForwardingRead(d *schema.ResourceData, meta interface{}) (err } } - if err = d.Set("href", response.Href); err != nil { - return fmt.Errorf("failed to set href for %s: %s", d.Id(), err) + if err = d.Set("source", d.Id()); err != nil { + return fmt.Errorf("failed to set source for %s: %s", d.Id(), err) } if err = d.Set("destinations", response.Destinations); err != nil { return fmt.Errorf("failed to set destination for %s: %s", d.Id(), err) diff --git a/gandi/resource_livedns_record_test.go b/gandi/resource_livedns_record_test.go index e06d3f1b..d2a74f3f 100644 --- a/gandi/resource_livedns_record_test.go +++ b/gandi/resource_livedns_record_test.go @@ -32,7 +32,7 @@ func testAccConfigRecord() string { return ` resource "gandi_livedns_record" "terraform_provider_gandi_com" { zone = "terraform-provider-gandi.com" - name = "www" + name = "example" type = "A" ttl = 3600 values = ["192.168.0.1"] @@ -50,7 +50,7 @@ func deleteRecord() { liveDNS := gandi.NewLiveDNSClient(config) err := liveDNS.DeleteDomainRecord( "terraform-provider-gandi.com", - "www", + "example", "A") // To make golangci-lint happy :/ if err != nil {