mirror of https://github.com/status-im/consul.git
Change field to pointer so it will be parsed as nil (#15831)
This commit is contained in:
parent
ab199a11b0
commit
252a08e903
|
@ -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
|
||||
|
|
|
@ -433,7 +433,7 @@ func TestDecodeConfigEntry(t *testing.T) {
|
|||
OutboundListenerPort: 808,
|
||||
DialedDirectly: true,
|
||||
},
|
||||
AccessLogs: AccessLogsConfig{
|
||||
AccessLogs: &AccessLogsConfig{
|
||||
Enabled: true,
|
||||
DisableListenerLogs: true,
|
||||
Type: FileLogSinkType,
|
||||
|
|
Loading…
Reference in New Issue