Skip to content

Commit

Permalink
Attempt: Filter out error docs from standalone cluster lists
Browse files Browse the repository at this point in the history
Not working yet.
  • Loading branch information
matschaffer committed Sep 6, 2022
1 parent f7ab9b7 commit 4d90cf8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ export async function hasStandaloneClusters(req: LegacyRequest, ccs: string) {
},
},
],
must_not: [
{
exists: {
field: 'error.message',
},
},
],
},
},
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ export const standaloneClusterFilter = {
field: 'cluster_uuid',
},
},
{
exists: {
field: 'error',
},
},
],
},
},
Expand Down

0 comments on commit 4d90cf8

Please sign in to comment.