-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
4.0.2 scripts can only be launched by api with ID and no longer with a name. #16145
Comments
Thanks for reporting a problem you've encountered in NetBox. Although the OpenAPI schema does not indicate that scripts can be invoked by name, the 4.0.2 docs do provide an example in that style, so this feels like a regression against a documented behavior. |
Hi, Most definitely a regression. Problem is that you cannot change the id so if you delete the script and add it again it gets a new id and then you have to change all your endpoints that use it. |
It works again! |
Deployment Type
Self-hosted
NetBox Version
v4.0.2
Python Version
3.10
Steps to Reproduce
see #16123
In the past I could run the script with "https://netbox-test/api/extras/scripts/scriptA.class"
This does not work anymore and I need an ID ;(
Exception Value: | Field 'id' expected a number but got 'ProcessLogging'.
Expected Behavior
it works lik in 3.7.7
Observed Behavior
ValueError at /api/extras/scripts/ProcessLogging/
launching it with /api/extras/scripts/6/
Does work.
The text was updated successfully, but these errors were encountered: