mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 16:48:16 -06:00
14731 fix install name
This commit is contained in:
parent
0143a5599a
commit
7be752aba3
@ -668,6 +668,7 @@ def get_local_plugins(plugins):
|
||||
plugin_module = "{}.{}".format(plugin_config.__module__, plugin_config.__name__) # type: ignore
|
||||
plugins[plugin_config.name] = {
|
||||
'slug': plugin_config.name,
|
||||
'config_name': None,
|
||||
'name': plugin_config.verbose_name,
|
||||
'tag_line': plugin_config.description,
|
||||
'description_short': None,
|
||||
@ -678,7 +679,7 @@ def get_local_plugins(plugins):
|
||||
'is_installed': True,
|
||||
'is_certified': False,
|
||||
'is_community': False,
|
||||
'versions': None,
|
||||
'versions': [],
|
||||
}
|
||||
|
||||
return plugins
|
||||
@ -745,7 +746,8 @@ def get_catalog_plugins(plugins):
|
||||
plugins[data['config_name']]['description_short'] = data['description_short']
|
||||
else:
|
||||
plugins[data['config_name']] = {
|
||||
'slug': data['config_name'],
|
||||
'slug': data['slug'],
|
||||
'config_name': data['config_name'],
|
||||
'name': data['title_short'],
|
||||
'title_long': data['title_long'],
|
||||
'tag_line': data['tag_line'],
|
||||
|
@ -66,12 +66,12 @@ From
|
||||
|
||||
<pre class="block"><code>
|
||||
source /opt/netbox/venv/bin/activate
|
||||
pip install netbox-acls
|
||||
pip install {{ plugin.slug }}
|
||||
</code></pre>
|
||||
<p>2. In /opt/netbox/netbox/netbox/configuration.py, add the plugin to the PLUGINS list:</p>
|
||||
<pre class="block"><code>
|
||||
PLUGINS=[
|
||||
"netbox_acls',
|
||||
"{{ plugin.config_name }}",
|
||||
]
|
||||
</code></pre>
|
||||
<p>3. Still from the NetBox virtual environment, run database migrations and collect static files:</p>
|
||||
|
Loading…
Reference in New Issue
Block a user