Skip django_auth_ldap import if missing (#1955)

This commit is contained in:
Djebran Lezzoum
2024-10-02 15:36:00 +02:00
committed by GitHub
parent 70ec7a5304
commit ae86cb3d13

View File

@@ -15,7 +15,11 @@ data:
import os
import socket
# Import all so that extra_settings works properly
from django_auth_ldap.config import *
try:
# Some AWX setups may have no django_auth_ldap dependency.
from django_auth_ldap.config import *
except:
pass
def get_secret():
if os.path.exists("/etc/tower/SECRET_KEY"):