Skip to content

Commit 196dace

Browse files
authored
[fix] Update fleet agent policy (#235)
1 parent 35bb90d commit 196dace

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kibana/fleet.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ type AgentPolicy struct {
7878
UnenrollTimeout int `json:"unenroll_timeout,omitempty"`
7979
InactivityTImeout int `json:"inactivity_timeout,omitempty"`
8080
AgentFeatures []map[string]interface{} `json:"agent_features,omitempty"`
81-
Overrides []map[string]interface{} `json:"overrides,omitempty"`
81+
Overrides map[string]interface{} `json:"overrides,omitempty"`
8282
IsProtected bool `json:"is_protected"`
8383
}
8484

@@ -111,7 +111,7 @@ type AgentPolicyUpdateRequest struct {
111111
UnenrollTimeout int `json:"unenroll_timeout,omitempty"`
112112
InactivityTImeout int `json:"inactivity_timeout,omitempty"`
113113
AgentFeatures []map[string]interface{} `json:"agent_features,omitempty"`
114-
Overrides []map[string]interface{} `json:"overrides,omitempty"`
114+
Overrides map[string]interface{} `json:"overrides,omitempty"`
115115
IsProtected *bool `json:"is_protected,omitempty"` // Optional bool for compatibility with the older pre 8.9.0 stack
116116
}
117117

0 commit comments

Comments
 (0)