Skip to content

Commit

Permalink
Merge pull request #137 from go-gandi/fix-email-forwarding
Browse files Browse the repository at this point in the history
Fix email_forwarding resource
  • Loading branch information
nlewo authored Feb 6, 2023
2 parents ff3c5d3 + d0f02ae commit 0c78aed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gandi/resource_email_forwarding.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions gandi/resource_livedns_record_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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 {
Expand Down

0 comments on commit 0c78aed

Please sign in to comment.