From 5088fb17c779c8260e1d4bca1932d17afa713ceb Mon Sep 17 00:00:00 2001 From: Mario Minardi Date: Mon, 6 May 2024 14:56:33 -0600 Subject: [PATCH] tailscale: update state after modification for ACL resource (#364) 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) }