From 9ed948b287d68b52f42a1aeced6888460c819c25 Mon Sep 17 00:00:00 2001 From: Mario Minardi Date: Fri, 3 May 2024 12:30:49 -0600 Subject: [PATCH] tailscale: update state after modification for ACL resource Adds calls to `Read` after doing `Create` or `Update` operations for the ACL resource. This resource was missed in #362 where it was added for other existing resources. Fixes https://github.com/tailscale/corp/issues/19698 Signed-off-by: Mario Minardi --- tailscale/resource_acl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tailscale/resource_acl.go b/tailscale/resource_acl.go index 74687cf2..0ac00932 100644 --- a/tailscale/resource_acl.go +++ b/tailscale/resource_acl.go @@ -132,7 +132,7 @@ func resourceACLCreate(ctx context.Context, d *schema.ResourceData, m interface{ } d.SetId(createUUID()) - return nil + return resourceACLRead(ctx, d, m) } func resourceACLUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { @@ -146,5 +146,5 @@ func resourceACLUpdate(ctx context.Context, d *schema.ResourceData, m interface{ return diagnosticsError(err, "Failed to set ACL") } - return nil + return resourceACLRead(ctx, d, m) }