Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: Return 404 when deregistering a non-existent check #11950

Merged
merged 2 commits into from
Jan 6, 2022

Commits on Jan 6, 2022

  1. api: Return 404 when deregistering a non-existent check

    Update the `/agent/check/deregister/` API endpoint to return a 404
    HTTP response code when an attempt is made to de-register a check ID
    that does not exist on the agent.
    
    This brings the behavior of /agent/check/deregister/ inline with the
    behavior of /agent/service/deregister/ which was changed in #10632 to
    similarly return a 404 when de-registering non-existent services.
    
    Fixes #5821
    blake committed Jan 6, 2022
    Configuration menu
    Copy the full SHA
    29db330 View commit details
    Browse the repository at this point in the history
  2. Add changelog

    blake committed Jan 6, 2022
    Configuration menu
    Copy the full SHA
    0636516 View commit details
    Browse the repository at this point in the history