Skip to content

Commit eecdd15

Browse files
committed
send an empty global_data_tags on update
1 parent d7a6b8a commit eecdd15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/fleet/agent_policy/models.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ func (model *agentPolicyModel) toAPIUpdateModel(ctx context.Context, serverVersi
214214
itemsList = append(itemsList, v)
215215
}
216216
body.GlobalDataTags = &itemsList
217+
} else {
218+
itemsList := make([]kbapi.AgentPolicyGlobalDataTagsItem, 0)
219+
body.GlobalDataTags = &itemsList
217220
}
218221

219222
return body, nil

0 commit comments

Comments
 (0)