Skip to content

Commit 664dc85

Browse files
committed
Fix tests
1 parent fe9d42a commit 664dc85

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

x-pack/plugins/ingest_manager/server/services/agent_policy_update.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ export async function agentPolicyUpdateEventHandler(
1616
agentPolicyId: string
1717
) {
1818
const adminUser = await outputService.getAdminUser(soClient);
19-
// If no admin user fleet is not enabled just skip this hook
20-
if (!adminUser) {
19+
const outputId = await outputService.getDefaultOutputId(soClient);
20+
// If no admin user and no default output fleet is not enabled just skip this hook
21+
if (!adminUser || !outputId) {
2122
return;
2223
}
2324

0 commit comments

Comments
 (0)