From 7fbed1ef7d3bef1cc92ec08b52a35f9d891c9b6a Mon Sep 17 00:00:00 2001 From: Brian McLaughlin Date: Thu, 22 Feb 2024 13:33:53 -0500 Subject: [PATCH] Lint No-Issue --- galaxy_ng/app/management/commands/dump_auth_config.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/galaxy_ng/app/management/commands/dump_auth_config.py b/galaxy_ng/app/management/commands/dump_auth_config.py index 8323b2f403..3cdf1da858 100644 --- a/galaxy_ng/app/management/commands/dump_auth_config.py +++ b/galaxy_ng/app/management/commands/dump_auth_config.py @@ -1,10 +1,10 @@ import json import os from django.core.management.base import BaseCommand -from galaxy_ng.app.models.config import Setting from django.conf import settings from dynaconf.utils import upperfy + class Command(BaseCommand): KEYCLOAK_AUTH_KEYS = [ "SOCIAL_AUTH_KEYCLOAK_ACCESS_TOKEN_URL", @@ -55,13 +55,17 @@ def format_config_data(self, type, keys, prefix): config["configuration"].update({k: v}) return config - def handle(self, *args, **options): try: data = [] # Add Keycloak auth config - data.append(self.format_config_data("keycloak", self.KEYCLOAK_AUTH_KEYS, "SOCIAL_AUTH_KEYCLOAK_")) + data.append( + self.format_config_data( + "keycloak", + self.KEYCLOAK_AUTH_KEYS, + "SOCIAL_AUTH_KEYCLOAK_"), + ) # Add LDAP auth config data.append(self.format_config_data("ldap", self.LDAP_AUTH_KEYS, "AUTH_LDAP_"))