A KeyError for 'built_in' could occur in `ironic.api.method`
when processing node inspection rules if an invalid priority
(e.g., -1) was provided in a POST request. This resulted in a
500 server error.
This issue was identified while writing tests for inspection rule
priority as part of the work for LP#2105478. The
server-side error was observed in logs during POST requests to
`/baremetal/v1/nodes`, notably triggered by the
`tempest-TestInspectionRules` test, as seen in the log entry:
"ERROR ironic.api.method [...] Server-side error: "'built_in'""
This patch ensures the 'built_in' key is correctly accessed or
handled within the inspection rule processing logic, particularly
when validating or processing rule priorities, to prevent this error.
Related-Bug: 2105478
Change-Id: I3ecf95d316687bc6b82d28cdd945eaba8115aedf