|
|
@@ -35,12 +35,9 @@ class MyScript(Script):
|
|
|
|
|
|
The `run()` method should accept two arguments:
|
|
|
|
|
|
-* `data` - A dictionary containing all of the variable data passed via the web form.
|
|
|
+* `data` - A dictionary containing all the variable data passed via the web form.
|
|
|
* `commit` - A boolean indicating whether database changes will be committed.
|
|
|
|
|
|
-!!! note
|
|
|
- The `commit` argument was introduced in NetBox v2.7.8. Backward compatibility is maintained for scripts which accept only the `data` argument, however beginning with v2.10 NetBox will require the `run()` method of every script to accept both arguments. (Either argument may still be ignored within the method.)
|
|
|
-
|
|
|
Defining script variables is optional: You may create a script with only a `run()` method if no user input is needed.
|
|
|
|
|
|
Any output generated by the script during its execution will be displayed under the "output" tab in the UI.
|