Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
szwarckonrad committed Oct 24, 2023
1 parent 97abb64 commit ad1c468
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const waitForHostToEnroll = async (
kuery: `(local_metadata.host.hostname.keyword : "${hostname}")`,
showInactive: false,
}).then((response) => {
agentId = response.items[0].id;
agentId = response.items[0]?.id;
return response.items.filter((agent) => agent.status === 'online')[0];
}),
RETRYABLE_TRANSIENT_ERRORS
Expand Down

0 comments on commit ad1c468

Please sign in to comment.