From e0b94d0a44d312b5a92dadc9043675eedd73e1cd Mon Sep 17 00:00:00 2001 From: Jaime Soriano Pastor Date: Fri, 23 Jun 2023 12:28:37 +0200 Subject: [PATCH] Omit monitoring output ID in policies when empty (#1320) Fixes regression in 0.83.0. --- internal/kibana/policies.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/kibana/policies.go b/internal/kibana/policies.go index ef9f56e67..da0fd52ab 100644 --- a/internal/kibana/policies.go +++ b/internal/kibana/policies.go @@ -19,8 +19,8 @@ type Policy struct { Description string `json:"description"` Namespace string `json:"namespace"` Revision int `json:"revision,omitempty"` - MonitoringEnabled []string `json:"monitoring_enabled"` - MonitoringOutputID string `json:"monitoring_output_id"` + MonitoringEnabled []string `json:"monitoring_enabled,omitempty"` + MonitoringOutputID string `json:"monitoring_output_id,omitempty"` } // CreatePolicy persists the given Policy in Fleet.