mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Include labels when creating team policy (#28142)
#27277 - [x] Manual QA for all new/changed functionality
This commit is contained in:
parent
7c3701956d
commit
588dfb9972
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue