From 252a08e903ad7700bb69ff7b1a540e1c3abbe159 Mon Sep 17 00:00:00 2001 From: cskh Date: Mon, 19 Dec 2022 10:25:36 -0500 Subject: [PATCH] Change field to pointer so it will be parsed as nil (#15831) --- api/config_entry.go | 2 +- api/config_entry_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/config_entry.go b/api/config_entry.go index 0a0e5e14cb..2773e25053 100644 --- a/api/config_entry.go +++ b/api/config_entry.go @@ -295,7 +295,7 @@ type ProxyConfigEntry struct { Config map[string]interface{} `json:",omitempty"` MeshGateway MeshGatewayConfig `json:",omitempty" alias:"mesh_gateway"` Expose ExposeConfig `json:",omitempty"` - AccessLogs AccessLogsConfig `json:",omitempty"` + AccessLogs *AccessLogsConfig `json:",omitempty"` Meta map[string]string `json:",omitempty"` CreateIndex uint64 diff --git a/api/config_entry_test.go b/api/config_entry_test.go index ca8fbfcb97..30f7510402 100644 --- a/api/config_entry_test.go +++ b/api/config_entry_test.go @@ -433,7 +433,7 @@ func TestDecodeConfigEntry(t *testing.T) { OutboundListenerPort: 808, DialedDirectly: true, }, - AccessLogs: AccessLogsConfig{ + AccessLogs: &AccessLogsConfig{ Enabled: true, DisableListenerLogs: true, Type: FileLogSinkType,