Skip to content

Script ignores 'scheduling_enabled' if it has no input parameters #13096

@candlerb

Description

@candlerb

NetBox version

v3.5.4

Python version

3.8

Steps to Reproduce

Upload the following script and run it:

from extras.scripts import Script

class TestScript(Script):
    class Meta:
        name = "Test Script"
        scheduling_enabled = False

    def run(self, data, commit):
        self.log_success("Run OK")
        return "OK\n"

Expected Behavior

Since scheduling_enabled is False, Netbox should not offer to run the script at scheduled times.

Observed Behavior

image

Note however that commit_default = False is honoured if provided.

Metadata

Metadata

Assignees

Labels

severity: mediumResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions