Skip to content

Commit

Permalink
set id to expected value
Browse files Browse the repository at this point in the history
  • Loading branch information
danawillow committed Jun 17, 2019
1 parent bcd94bc commit 3c95d5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions third_party/terraform/resources/resource_dns_record_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ func resourceDnsRecordSetImportState(d *schema.ResourceData, _ interface{}) ([]*
d.Set("managed_zone", parts[1])
d.Set("name", parts[2])
d.Set("type", parts[3])
d.SetId(parts[1] + "/" + parts[2] + "/" + parts[3])
} else {
return nil, fmt.Errorf("Invalid dns record specifier. Expecting {zone-name}/{record-name}/{record-type} or {project}/{zone-name}/{record-name}/{record-type}. The record name must include a trailing '.' at the end.")
}
Expand Down

0 comments on commit 3c95d5b

Please sign in to comment.