Skip to content

Commit

Permalink
Omit monitoring output ID in policies when empty (#1320)
Browse files Browse the repository at this point in the history
Fixes regression in 0.83.0.
  • Loading branch information
jsoriano authored Jun 23, 2023
1 parent 93a145f commit e0b94d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/kibana/policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e0b94d0

Please sign in to comment.