-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
Deployment Type
Self-hosted
NetBox Version
v4.2.5
Python Version
3.11
Steps to Reproduce
1、Select any script that does not require additional parameters but can update the database, and directly click "Run" on the custom script list page.
2、The running result prompts that the stack group has been associated.
3、Virtual Chassis is not associated with any devices.
4、Click on the script details page (by default, the "commit changes" option is selected), and then click "Run Script".
5、The database has been modified and the update is successful.
Expected Behavior
When clicking the "Run" button on the list page, submit the database modification.
The document shows that
The checkbox to commit database changes when executing a script is checked by default.
And my script doesn't have "commit_default" set.
class StackDetection(Script):
class Meta:
name = "堆叠检测维护(VirtualChassis)"
description = "根据设备名称自动创建虚拟堆叠"
def run(self, data, commit):
···
Observed Behavior
When clicking "Run" on the list page, perform a dry-run.





