mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Use new exclude_fleet_maintained_apps flag (#25674)
for #25427 This PR updates the calls to the "list software titles" API to include the `exclude_fleet_maintained_apps=true` flag. I tested this with https://github.com/fleetdm/fleet/pull/25649 successfully.
This commit is contained in:
parent
8419b8e87a
commit
379156e578
2 changed files with 4 additions and 4 deletions
|
|
@ -48,7 +48,7 @@ module.exports = {
|
|||
// Get all of the software packages on the Fleet instance.
|
||||
for(let teamApid of teamApids){
|
||||
let configurationProfilesResponseData = await sails.helpers.http.get.with({
|
||||
url: `/api/latest/fleet/software/titles?team_id=${teamApid}`,
|
||||
url: `/api/latest/fleet/software/titles?team_id=${teamApid}&exclude_fleet_maintained_apps=true`,
|
||||
baseUrl: sails.config.custom.fleetBaseUrl,
|
||||
headers: {
|
||||
Authorization: `Bearer ${sails.config.custom.fleetApiToken}`
|
||||
|
|
@ -63,7 +63,7 @@ module.exports = {
|
|||
});
|
||||
for(let softwareWithInstaller of softwareWithSoftwarePackages) {
|
||||
let softwareWithInstallerResponse = await sails.helpers.http.get.with({
|
||||
url: `/api/latest/fleet/software/titles/${softwareWithInstaller.id}?team_id=${teamApid}&available_for_install=true`,
|
||||
url: `/api/latest/fleet/software/titles/${softwareWithInstaller.id}?team_id=${teamApid}&available_for_install=true&exclude_fleet_maintained_apps=true`,
|
||||
baseUrl: sails.config.custom.fleetBaseUrl,
|
||||
headers: {
|
||||
Authorization: `Bearer ${sails.config.custom.fleetApiToken}`
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ module.exports = {
|
|||
// Get all of the software packages on the Fleet instance.
|
||||
for(let teamApid of teamApids){
|
||||
let configurationProfilesResponseData = await sails.helpers.http.get.with({
|
||||
url: `/api/latest/fleet/software/titles?team_id=${teamApid}`,
|
||||
url: `/api/latest/fleet/software/titles?team_id=${teamApid}&exclude_fleet_maintained_apps=true`,
|
||||
baseUrl: sails.config.custom.fleetBaseUrl,
|
||||
headers: {
|
||||
Authorization: `Bearer ${sails.config.custom.fleetApiToken}`
|
||||
|
|
@ -62,7 +62,7 @@ module.exports = {
|
|||
});
|
||||
for(let softwareWithInstaller of softwareWithSoftwarePackages) {
|
||||
let softwareWithInstallerResponse = await sails.helpers.http.get.with({
|
||||
url: `/api/latest/fleet/software/titles/${softwareWithInstaller.id}?team_id=${teamApid}&available_for_install=true`,
|
||||
url: `/api/latest/fleet/software/titles/${softwareWithInstaller.id}?team_id=${teamApid}&available_for_install=true&exclude_fleet_maintained_apps=true`,
|
||||
baseUrl: sails.config.custom.fleetBaseUrl,
|
||||
headers: {
|
||||
Authorization: `Bearer ${sails.config.custom.fleetApiToken}`
|
||||
|
|
|
|||
Loading…
Reference in a new issue