From 588dfb9972e663084a1208ecf8ce7ddbfc722b9c Mon Sep 17 00:00:00 2001 From: Dante Catalfamo <43040593+dantecatalfamo@users.noreply.github.com> Date: Fri, 11 Apr 2025 11:04:44 -0400 Subject: [PATCH] Include labels when creating team policy (#28142) #27277 - [x] Manual QA for all new/changed functionality --- server/service/team_policies.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/service/team_policies.go b/server/service/team_policies.go index 9e25216fd4..c055fba979 100644 --- a/server/service/team_policies.go +++ b/server/service/team_policies.go @@ -55,6 +55,8 @@ func teamPolicyEndpoint(ctx context.Context, request interface{}, svc fleet.Serv CalendarEventsEnabled: req.CalendarEventsEnabled, SoftwareTitleID: req.SoftwareTitleID, ScriptID: req.ScriptID, + LabelsIncludeAny: req.LabelsIncludeAny, + LabelsExcludeAny: req.LabelsExcludeAny, }) if err != nil { return teamPolicyResponse{Err: err}, nil @@ -164,6 +166,8 @@ func (svc *Service) newTeamPolicyPayloadToPolicyPayload(ctx context.Context, tea SoftwareInstallerID: softwareInstallerID, VPPAppsTeamsID: vppAppsTeamsID, ScriptID: p.ScriptID, + LabelsIncludeAny: p.LabelsIncludeAny, + LabelsExcludeAny: p.LabelsExcludeAny, }, nil }