From 6b56e92acc2b512b3b35f63baac0cc394210fcbf Mon Sep 17 00:00:00 2001 From: Jenny Zhang Date: Wed, 19 Jul 2023 14:17:50 -0400 Subject: [PATCH] client/tailscale: add warnings slice to ACLTestFailureSummary Updates #8645 Signed-off-by: Jenny Zhang --- client/tailscale/acl.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/tailscale/acl.go b/client/tailscale/acl.go index 226e7f916..ddc79506d 100644 --- a/client/tailscale/acl.go +++ b/client/tailscale/acl.go @@ -150,8 +150,9 @@ func (c *Client) ACLHuJSON(ctx context.Context) (acl *ACLHuJSON, err error) { // ACLTestFailureSummary specifies the JSON format sent to the // JavaScript client to be rendered in the HTML. type ACLTestFailureSummary struct { - User string `json:"user"` - Errors []string `json:"errors"` + User string `json:"user,omitempty"` + Errors []string `json:"errors,omitempty"` + Warnings []string `json:"warnings,omitempty"` } // ACLTestError is ErrResponse but with an extra field to account for ACLTestFailureSummary.