Skip to content

Commit

Permalink
fix imports for splitdns (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
keeleysam committed May 3, 2024
1 parent 7087082 commit aa289ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tailscale/resource_dns_split_nameservers.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ func resourceSplitDNSNameserversRead(ctx context.Context, d *schema.ResourceData
return diagnosticsError(err, "Failed to fetch split DNS configs")
}

domain := d.Id()

if err = d.Set("domain", domain); err != nil {
return diag.FromErr(err)
}

nameservers := splitDNS[d.Id()]

if err = d.Set("nameservers", nameservers); err != nil {
Expand Down

0 comments on commit aa289ad

Please sign in to comment.