We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe9d42a commit 664dc85Copy full SHA for 664dc85
x-pack/plugins/ingest_manager/server/services/agent_policy_update.ts
@@ -16,8 +16,9 @@ export async function agentPolicyUpdateEventHandler(
16
agentPolicyId: string
17
) {
18
const adminUser = await outputService.getAdminUser(soClient);
19
- // If no admin user fleet is not enabled just skip this hook
20
- if (!adminUser) {
+ const outputId = await outputService.getDefaultOutputId(soClient);
+ // If no admin user and no default output fleet is not enabled just skip this hook
21
+ if (!adminUser || !outputId) {
22
return;
23
}
24
0 commit comments