Custom scripts docs: repetition of optional variables #5023

Closed
opened 2025-12-29 19:23:16 +01:00 by adam · 1 comment
Owner

Originally created by @bluikko on GitHub (Jun 23, 2021).

Change Type

Cleanup (formatting, typos, etc.)

Area

Functionality/features

Proposed Changes

The documentation repeats two times the optionality of variables:

Variables allow your script to accept user input via the NetBox UI, but they are optional: If your script does
not require any user input, there is no need to define any variables.

and

Defining script variables is optional: You may create a script with only a `run()` method if no user input is needed.

This seems to me like a repetition of the same statement.

I am unsure which one would be better to keep so the PR just takes one at random.

Originally created by @bluikko on GitHub (Jun 23, 2021). ### Change Type Cleanup (formatting, typos, etc.) ### Area Functionality/features ### Proposed Changes The documentation repeats two times the optionality of variables: ``` Variables allow your script to accept user input via the NetBox UI, but they are optional: If your script does not require any user input, there is no need to define any variables. ``` and ``` Defining script variables is optional: You may create a script with only a `run()` method if no user input is needed. ``` This seems to me like a repetition of the same statement. I am unsure which one would be better to keep so the PR just takes one at random.
adam added the type: documentation label 2025-12-29 19:23:16 +01:00
adam closed this issue 2025-12-29 19:23:16 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 23, 2021):

This is fine. It's often beneficial, even necessary, to repeat things in documentation.

@jeremystretch commented on GitHub (Jun 23, 2021): This is fine. It's often beneficial, even necessary, to repeat things in documentation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5023