Closes #13368: Report installed plugins during server error (#13387)

* Introduce get_installed_plugins() utility

* Extend 500 error template to list installed plugins

* Move get_plugin_config() to extras.plugins.utils
This commit is contained in:
Jeremy Stretch
2023-08-07 15:29:20 -04:00
committed by GitHub
parent 94c717392d
commit f830aae0fb
6 changed files with 48 additions and 32 deletions

View File

@@ -30,7 +30,10 @@
{{ error }}
Python version: {{ python_version }}
NetBox version: {{ netbox_version }}</pre>
NetBox version: {{ netbox_version }}
Plugins: {% for plugin, version in plugins.items %}
{{ plugin }}: {{ version }}{% empty %}None installed{% endfor %}
</pre>
<p>
If further assistance is required, please post to the <a href="https://github.com/netbox-community/netbox/discussions">NetBox discussion forum</a> on GitHub.
</p>