Skip to content

Commit

Permalink
[Fleet] Ignore inactive agents when removing a policy (#94311)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
Alejandro Fernández Gómez and kibanamachine authored Mar 15, 2021
1 parent a4fa4a6 commit c062b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/fleet/server/services/agents/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function unenrollForAgentPolicyId(
kuery: `${AGENT_SAVED_OBJECT_TYPE}.policy_id:"${policyId}"`,
page: page++,
perPage: 1000,
showInactive: true,
showInactive: false,
});

if (agents.length === 0) {
Expand Down

0 comments on commit c062b04

Please sign in to comment.