Populate the agent action result if there is no matching action handlers #26152
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Acknowledge the agent action and send the action result back if there is no matching action input supported by the agent.
This could happen in two cases:
Why is it important?
Without this change the .fleet-actions-results document is not be created for the action with unsupported input type, giving no feedback to the user about the result of the action.
Checklist
How to test this PR locally
Observe the .fleet-actions-results document with the error
osquery
input type, while osquery manager IS NOT added to the policy.Observe the .fleet-actions-results document with the error.