From b08f8d8e0c93ed5067d0ba6e06b57b1dd7bc48b8 Mon Sep 17 00:00:00 2001 From: Jens L Date: Thu, 27 Jul 2023 12:56:51 +0200 Subject: [PATCH] api: re-fix url import logging (#6400) * fix logging Signed-off-by: Jens Langhammer * remove lib from apps lib doesn't declare any models, so it really doesn't need to be in there anyways? Signed-off-by: Jens Langhammer * remove lib from schema too Signed-off-by: Jens Langhammer --------- Signed-off-by: Jens Langhammer --- authentik/api/v3/urls.py | 2 +- authentik/lib/apps.py | 10 ---------- authentik/root/settings.py | 1 - blueprints/schema.json | 1 - schema.yml | 5 ----- 5 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 authentik/lib/apps.py diff --git a/authentik/api/v3/urls.py b/authentik/api/v3/urls.py index a3e92c7c9..f22a80536 100644 --- a/authentik/api/v3/urls.py +++ b/authentik/api/v3/urls.py @@ -22,7 +22,7 @@ for _authentik_app in get_apps(): try: api_urls = import_module(f"{_authentik_app.name}.urls") except (ModuleNotFoundError, ImportError) as exc: - LOGGER.warning("Could not import app's URLs", app_name=_authentik_app.name, exception=exc) + LOGGER.warning("Could not import app's URLs", app_name=_authentik_app.name, exc=exc) continue if not hasattr(api_urls, "api_urlpatterns"): LOGGER.debug( diff --git a/authentik/lib/apps.py b/authentik/lib/apps.py deleted file mode 100644 index e155f53f7..000000000 --- a/authentik/lib/apps.py +++ /dev/null @@ -1,10 +0,0 @@ -"""authentik lib app config""" -from django.apps import AppConfig - - -class AuthentikLibConfig(AppConfig): - """authentik lib app config""" - - name = "authentik.lib" - label = "authentik_lib" - verbose_name = "authentik lib" diff --git a/authentik/root/settings.py b/authentik/root/settings.py index 01553a1c8..29294a5a1 100644 --- a/authentik/root/settings.py +++ b/authentik/root/settings.py @@ -66,7 +66,6 @@ INSTALLED_APPS = [ "authentik.crypto", "authentik.events", "authentik.flows", - "authentik.lib", "authentik.outposts", "authentik.policies.dummy", "authentik.policies.event_matcher", diff --git a/blueprints/schema.json b/blueprints/schema.json index 40b7984ab..7637beec4 100644 --- a/blueprints/schema.json +++ b/blueprints/schema.json @@ -3213,7 +3213,6 @@ "authentik.crypto", "authentik.events", "authentik.flows", - "authentik.lib", "authentik.outposts", "authentik.policies.dummy", "authentik.policies.event_matcher", diff --git a/schema.yml b/schema.yml index 53388c3ea..dcd8b0814 100644 --- a/schema.yml +++ b/schema.yml @@ -26665,7 +26665,6 @@ components: - authentik.crypto - authentik.events - authentik.flows - - authentik.lib - authentik.outposts - authentik.policies.dummy - authentik.policies.event_matcher @@ -26715,7 +26714,6 @@ components: * `authentik.crypto` - authentik Crypto * `authentik.events` - authentik Events * `authentik.flows` - authentik Flows - * `authentik.lib` - authentik lib * `authentik.outposts` - authentik Outpost * `authentik.policies.dummy` - authentik Policies.Dummy * `authentik.policies.event_matcher` - authentik Policies.Event Matcher @@ -29442,7 +29440,6 @@ components: * `authentik.crypto` - authentik Crypto * `authentik.events` - authentik Events * `authentik.flows` - authentik Flows - * `authentik.lib` - authentik lib * `authentik.outposts` - authentik Outpost * `authentik.policies.dummy` - authentik Policies.Dummy * `authentik.policies.event_matcher` - authentik Policies.Event Matcher @@ -29633,7 +29630,6 @@ components: * `authentik.crypto` - authentik Crypto * `authentik.events` - authentik Events * `authentik.flows` - authentik Flows - * `authentik.lib` - authentik lib * `authentik.outposts` - authentik Outpost * `authentik.policies.dummy` - authentik Policies.Dummy * `authentik.policies.event_matcher` - authentik Policies.Event Matcher @@ -36730,7 +36726,6 @@ components: * `authentik.crypto` - authentik Crypto * `authentik.events` - authentik Events * `authentik.flows` - authentik Flows - * `authentik.lib` - authentik lib * `authentik.outposts` - authentik Outpost * `authentik.policies.dummy` - authentik Policies.Dummy * `authentik.policies.event_matcher` - authentik Policies.Event Matcher