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

Exceptions are unhandled when rendering a config template via the REST API #12167

Closed
jeremystretch opened this issue Apr 4, 2023 · 0 comments
Assignees
Labels
beta Concerns a bug/feature in a beta release status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@jeremystretch
Copy link
Member

NetBox version

v3.5-beta1

Python version

3.8

Steps to Reproduce

  1. Create a config template with the following code:
{{ foo|bar }}
  1. Assign the config template to a device
  2. Attempt to render the device's configuration by making a REST API call to the /api/dcim/devices/<id>/render-config/ endpoint

Expected Behavior

Rendering should fail and return an error message indicating the reason. (The template filter bar is invalid.)

Observed Behavior

A TemplateAssertionError exception is raised and not handled.

@jeremystretch jeremystretch added type: bug A confirmed report of unexpected behavior in the application status: accepted This issue has been accepted for implementation beta Concerns a bug/feature in a beta release labels Apr 4, 2023
@jeremystretch jeremystretch self-assigned this Apr 4, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beta Concerns a bug/feature in a beta release status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

1 participant