Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Feb 7, 2025

What does this PR do?

Clean up cli output when elastic-agent uninstall runs when the agent has previously been unenrolled.

Why is it important?

Current output indicates an error state, this can lead to confusion.
New output will indicate that the notification is dropped.

Checklist

  • I have read and understood the pull request guidelines of this project.
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool
  • I have added an integration test or an E2E test

Disruptive User Impact

N/A

How to test this PR locally

Unenroll an agent in fleet, then run the uninstall command.

Related issues


This is an automatic backport of pull request #6735 done by [Mergify](https://mergify.com).

* Clean up message when audit/uninstall returns 401

* Update internal/pkg/agent/install/uninstall.go

Co-authored-by: Craig MacKenzie <craig.mackenzie@elastic.co>

---------

Co-authored-by: Craig MacKenzie <craig.mackenzie@elastic.co>
(cherry picked from commit c82d568)
@mergify mergify bot added the backport label Feb 7, 2025
@mergify mergify bot requested a review from a team as a code owner February 7, 2025 22:00
@mergify mergify bot requested review from andrzej-stencel and kaanyalti and removed request for a team February 7, 2025 22:00
@github-actions github-actions bot added bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Feb 7, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@michel-laterman michel-laterman enabled auto-merge (squash) February 7, 2025 23:15
@mergify
Copy link
Contributor Author

mergify bot commented Feb 10, 2025

This pull request has not been merged yet. Could you please review and merge it @michel-laterman? 🙏

1 similar comment
@mergify
Copy link
Contributor Author

mergify bot commented Feb 17, 2025

This pull request has not been merged yet. Could you please review and merge it @michel-laterman? 🙏

@elastic-sonarqube
Copy link

@michel-laterman michel-laterman merged commit 69ae545 into 9.0 Feb 18, 2025
14 checks passed
@michel-laterman michel-laterman deleted the mergify/bp/9.0/pr-6735 branch February 18, 2025 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants