Skip to content

Commit

Permalink
Skip django_auth_ldap import if missing (#1955)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldjebran authored Oct 2, 2024
1 parent 70ec7a5 commit ae86cb3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion roles/installer/templates/configmaps/config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit ae86cb3

Please sign in to comment.