Skip to content

Commit

Permalink
Add comment for ignoring the default policy id.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjhampton committed Jul 16, 2021
1 parent 6afef3a commit 65343d8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ export const TelemetryEndpointTaskConstants = {
VERSION: '1.0.0',
};

// Endpoint agent uses this Policy ID while it's installing.
const DefaultEndpointPolicyIdToIgnore = '00000000-0000-0000-0000-000000000000';

/** Telemetry Endpoint Task
*
* The Endpoint Telemetry task is a daily batch job that collects and transmits non-sensitive
Expand Down Expand Up @@ -176,7 +179,7 @@ export class TelemetryEndpointTask {
}

const fleetAgents = agentsResponse?.agents.reduce((cache, agent) => {
if (agent.id === '00000000-0000-0000-0000-000000000000') {
if (agent.id === DefaultEndpointPolicyIdToIgnore) {
return cache;
}

Expand Down

0 comments on commit 65343d8

Please sign in to comment.