[PR #2881] [MERGED] Clarify use of "runreport" CLI #12455

Closed
opened 2025-12-29 22:21:40 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/2881
Author: @candlerb
Created: 2/13/2019
Status: Merged
Merged: 2/20/2019
Merged by: @jeremystretch

Base: developHead: candlerb/doc-reports


📝 Commits (1)

  • 8d86e97 Clarify use of "runreport" CLI

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 docs/additional-features/reports.md (+1 -1)

📄 Description

Fixes:

Minor documentation enhancement about how correctly to invoke runreport.

The behaviour of runreport is confusing if you don't know exactly what to do. Suppose you create reports/foo-bar.py containing class FooBar. The following commands all just return [hh:mm:ss] Finished without any error - but nothing is executed, and there is no indication why not.

python3 manage.py runreport FooBar
python3 manage.py runreport foo-bar.py
python3 manage.py runreport reports/foo-bar.py

It took me a while to work out that the correct command is:

python3 manage.py runreport foo-bar

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/2881 **Author:** [@candlerb](https://github.com/candlerb) **Created:** 2/13/2019 **Status:** ✅ Merged **Merged:** 2/20/2019 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `candlerb/doc-reports` --- ### 📝 Commits (1) - [`8d86e97`](https://github.com/netbox-community/netbox/commit/8d86e97247a9971057a96dd6b74cae7b194c4653) Clarify use of "runreport" CLI ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/additional-features/reports.md` (+1 -1) </details> ### 📄 Description ### Fixes: Minor documentation enhancement about how correctly to invoke `runreport`. The behaviour of runreport is confusing if you don't know exactly what to do. Suppose you create `reports/foo-bar.py` containing `class FooBar`. The following commands all just return `[hh:mm:ss] Finished` without any error - but nothing is executed, and there is no indication why not. ``` python3 manage.py runreport FooBar python3 manage.py runreport foo-bar.py python3 manage.py runreport reports/foo-bar.py ``` It took me a while to work out that the correct command is: ``` python3 manage.py runreport foo-bar ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:21:40 +01:00
adam closed this issue 2025-12-29 22:21:40 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12455