Skip to content

Commit

Permalink
adjust query to include agents without endpoint as unenrolled (elasti…
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlog authored Jul 14, 2020
1 parent c16bffc commit 3f95b7a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export async function findAllUnenrolledAgentIds(
page: pageNum,
perPage: pageSize,
showInactive: true,
kuery: 'fleet-agents.packages:endpoint AND fleet-agents.active:false',
kuery:
'(fleet-agents.packages : "endpoint" AND fleet-agents.active : false) OR (NOT fleet-agents.packages : "endpoint" AND fleet-agents.active : true)',
};
};

Expand Down

0 comments on commit 3f95b7a

Please sign in to comment.