Include labels when creating team policy (#28142)

#27277

- [x] Manual QA for all new/changed functionality
This commit is contained in:
Dante Catalfamo 2025-04-11 11:04:44 -04:00 committed by GitHub
parent 7c3701956d
commit 588dfb9972
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}