From eff52f73beea6796f28f31ae6a8cfb89c4ad6108 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 0a0e5e14c..2773e2505 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 ca8fbfcb9..30f751040 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,