-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Problem with merged fields from separate custom scripts #4710
Comments
I am able to reproduce this on https://master.netbox.dev, however you need to run one script and then the other script to get the reject. If you just focus on one script there is no issue. |
Reproducible with the following code, to simplify testing. |
Just to add to the above comment, you simply need to navigate to another script, then it's a bit random but it takes between 1 - 5 refreshes (without actually having to run the second script) to see the extra fields. The definite first step though is that you have to run one script then you cannot run any other script after that without a restart. Please let me know if there's anything I can do to assist (including testing) |
This seems to be a byproduct of the change implemented under #4525 to allow scripts to accept initial data. |
Environment
Steps to Reproduce
Install the
create_vm.py
script and theadd_services.py
scripts (attached as.txt
files)create_vm.py.txt
add_services.py.txt
click on create_vm
enter some parameters
click on Run Script
it rejects the entry and displays a whole load of parameters from the add_service script
viewing a fresh create_vm shows the merged fields
Only way to reset it is to restart the netbox service
Expected Behavior
Only the fields for that specific script should show
Observed Behavior
Running of either script results in merging of the fields of both scripts.
This has also been verified on the mailing list
The text was updated successfully, but these errors were encountered: