Skip to content

Better m2m 404 errors - #650

Draft
pederhan wants to merge 4 commits into
masterfrom
better-m2m-404-errors
Draft

pederhan wants to merge 4 commits into
masterfrom
better-m2m-404-errors

Conversation

@pederhan

Copy link
Copy Markdown
Member

This PR adds more specific 404 error messages for m2m endpoints (hostgroups->hosts, roles->atoms, roles->hosts) by adding code for determining _why: the lookup failed:

  1. The resource (atom, host) does not exist
  2. The resource (atom, host) is not associated with the "parent" resource (role, hostgroup)

Updated error messages will be shown here once I coax them out of mreg...

@coveralls

coveralls commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 97.682% (+0.01%) from 97.672% — better-m2m-404-errors into master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants