Skip to content

Commit

Permalink
Close #18357: Display author name for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasge authored and jeremystretch committed Feb 11, 2025
1 parent 154b3a7 commit 8114492
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions netbox/core/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ def get_local_plugins(plugins=None):
plugin = importlib.import_module(plugin_name)
plugin_config: PluginConfig = plugin.config

if plugin_config.author:
author = PluginAuthor(
name=plugin_config.author,
)
else:
author = None

local_plugins[plugin_config.name] = Plugin(
config_name=plugin_config.name,
title_short=plugin_config.verbose_name,
Expand All @@ -88,6 +95,7 @@ def get_local_plugins(plugins=None):
description_short=plugin_config.description,
is_local=True,
is_installed=True,
author=author,
installed_version=plugin_config.version,
)

Expand Down

0 comments on commit 8114492

Please sign in to comment.