Skip to content

Commit

Permalink
[Ingest Manager] Use search param vs KQL to find default agent (elast…
Browse files Browse the repository at this point in the history
…ic#69211)

* Remove another instance of filter for is_default

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
John Schulz and elasticmachine committed Jun 16, 2020
1 parent 632836f commit bb26c79
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ class AgentConfigService {
public async ensureDefaultAgentConfig(soClient: SavedObjectsClientContract) {
const configs = await soClient.find<AgentConfigSOAttributes>({
type: AGENT_CONFIG_SAVED_OBJECT_TYPE,
filter: `${AGENT_CONFIG_SAVED_OBJECT_TYPE}.attributes.is_default:true`,
searchFields: ['is_default'],
search: 'true',
});

if (configs.total === 0) {
Expand Down

0 comments on commit bb26c79

Please sign in to comment.