From aed49548795baf0a77108ba1536163e8243f6499 Mon Sep 17 00:00:00 2001 From: Samuel Keeley Date: Fri, 3 May 2024 11:06:35 -0500 Subject: [PATCH] fix imports for splitdns --- tailscale/resource_dns_split_nameservers.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tailscale/resource_dns_split_nameservers.go b/tailscale/resource_dns_split_nameservers.go index 4f0c96ec..af948c08 100644 --- a/tailscale/resource_dns_split_nameservers.go +++ b/tailscale/resource_dns_split_nameservers.go @@ -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 {