Closed llamafilm closed 2 weeks ago
For me it does not work via the UI either. Just Tested with this very simple script:
class TestScript(Script):
class Meta:
name = "TestScript"
def run(self, data, commit):
self.log_info('Script started.')
self.log_success('Script finished.')
got
Server Error
There was a problem with your request. Please contact an administrator.
The complete exception is provided below:
<class 'django.core.exceptions.ValidationError'>
{'name': ['This field cannot be blank.']}
Python version: 3.12.3
NetBox version: 4.1.5
Plugins:
netbox_dns: 1.1.5
netbox_secrets: 2.1.0
If further assistance is required, please post to the [NetBox discussion forum](https://github.com/netbox-community/netbox/discussions) on GitHub.
[Home Page](https://localhost/)
having the exact same issue
Same issue 2024-10-31 13:18:06 UTC 3b9349c1ea55 NetBox Community v4.1.5 (docker)
Deployment Type
Self-hosted
Triage priority
I'm a NetBox Labs customer
NetBox Version
v4.1.5
Python Version
3.12
Steps to Reproduce
manage.py runscript
Expected Behavior
no error
Observed Behavior
This looks like the same issue as #17885. This commit fixes the issue when running scripts in the GUI, but it's still broken in the CLI.