mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-27 13:53:12 +00:00
Skip django_auth_ldap import if missing (#1955)
This commit is contained in:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user