mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-07 05:42:55 +00:00
Skip django_auth_ldap import if missing (#1955)
This commit is contained in:
@@ -15,7 +15,11 @@ data:
|
|||||||
import os
|
import os
|
||||||
import socket
|
import socket
|
||||||
# Import all so that extra_settings works properly
|
# 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():
|
def get_secret():
|
||||||
if os.path.exists("/etc/tower/SECRET_KEY"):
|
if os.path.exists("/etc/tower/SECRET_KEY"):
|
||||||
|
|||||||
Reference in New Issue
Block a user