Skip to content

Unable to run scripts from CLI in v4.0 #16025

Closed
@ingvaldlorentzen

Description

@ingvaldlorentzen

Deployment Type

Self-hosted

NetBox Version

v4.0.0

Python Version

3.11

Steps to Reproduce

  1. Create a script
  2. Run it with `python manage.py runscript 'module.ScriptName' inside the NetBox instance

Expected Behavior

Script should run.

Observed Behavior

Script fails with:

AttributeError: 'Script' object has no attribute 'full_name'

Running the same script from GUI works fine, have tried multiple scripts, and haven't been able to run any via CLI in v4.

Seems to be this line that fails: https://github.com/netbox-community/netbox/blob/develop/netbox/extras/management/commands/runscript.py#L104

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