mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-11-28 15:14:32 +08:00
Make ldap3 optional, to workaround packaging issues.
This commit is contained in:
@@ -38,12 +38,16 @@ try:
|
||||
except ImportError:
|
||||
from flask import _request_ctx_stack as stack
|
||||
from werkzeug.exceptions import Unauthorized as FlaskUnauthorized
|
||||
import ldap3
|
||||
from dogpile.cache import make_region
|
||||
|
||||
from module_build_service.errors import Unauthorized, Forbidden
|
||||
from module_build_service import app, log, conf
|
||||
|
||||
try:
|
||||
import ldap3
|
||||
except ImportError:
|
||||
log.warn("ldap3 import not found. ldap/krb disabled.")
|
||||
|
||||
|
||||
client_secrets = None
|
||||
region = make_region().configure('dogpile.cache.memory')
|
||||
|
||||
Reference in New Issue
Block a user