Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ingvaldlorentzen opened this issue May 8, 2024 · 0 comments · Fixed by #16037
Closed

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

ingvaldlorentzen opened this issue May 8, 2024 · 0 comments · Fixed by #16037
Assignees
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@ingvaldlorentzen
Copy link

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

@ingvaldlorentzen ingvaldlorentzen added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels May 8, 2024
@jeremystretch jeremystretch removed their assignment May 8, 2024
@jeremystretch jeremystretch added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation severity: medium Results in substantial degraded or broken functionality for specfic workflows and removed status: needs triage This issue is awaiting triage by a maintainer labels May 8, 2024
@jeremystretch jeremystretch self-assigned this May 8, 2024
@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants