From 5cee074f67ce7388e672064730a2b2751319a0b7 Mon Sep 17 00:00:00 2001 From: bboerni2 <93215657+bboerni2@users.noreply.github.com> Date: Tue, 7 Oct 2025 16:05:01 +0200 Subject: [PATCH] gas --- configuration/plugins.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configuration/plugins.py b/configuration/plugins.py index b04d8cb..6bdb9aa 100644 --- a/configuration/plugins.py +++ b/configuration/plugins.py @@ -12,14 +12,20 @@ PLUGINS = [ # "netbox_proxbox", ] +# Hilfsvariable +diode_target = os.getenv("DIODE_GRPC_TARGET") + PLUGINS_CONFIG = { "netbox_inventory": { "sync_serial_to_device": True, "sync_asset_tag_to_device": True, }, "netbox_diode_plugin": { - "diode_target_override": os.getenv("DIODE_GRPC_TARGET"), + "diode_target_override": diode_target, "diode_username": os.getenv("DIODE_USERNAME", "diode"), "netbox_to_diode_client_secret": os.getenv("NETBOX_TO_DIODE_CLIENT_SECRET"), + "auth": { + "issuer": diode_target.replace("grpc://", "http://") + "/auth", + }, }, }