Merge branch 'develop-2.9' into docs-refresh

This commit is contained in:
Jeremy Stretch
2020-08-05 13:53:06 -04:00
42 changed files with 333 additions and 122 deletions

View File

@@ -39,9 +39,11 @@ The `run()` method should accept two arguments:
* `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 moving forward scripts should accept both arguments. This backward compatibility will be removed in v2.10.
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.)
Returning output from your script is optional. Any raw output generated by the script will be displayed under the "output" tab in the UI.
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.
## Module Attributes