Open michel-laterman opened 2 days ago
Call audit/unenroll (during uninstall) before components are stopped if the elastic-agent is running a fleet-server instance.
Agents running fleet-server instances would always get an error because fleet-server would be stopped by the time the notify call is attempted.
./changelog/fragments
Enroll an agent in a policy with the fleet-server integration and uninstall the agent
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)
Failed conditions 0.0% Coverage on New Code (required ≥ 40%)
See analysis details on SonarQube
What does this PR do?
Call audit/unenroll (during uninstall) before components are stopped if the elastic-agent is running a fleet-server instance.
Why is it important?
Agents running fleet-server instances would always get an error because fleet-server would be stopped by the time the notify call is attempted.
Checklist
I have made corresponding changes to the documentationI have made corresponding change to the default configuration filesI have added tests that prove my fix is effective or that my feature works./changelog/fragments
using the changelog toolHow to test this PR locally
Enroll an agent in a policy with the fleet-server integration and uninstall the agent
Related issues