Stop printing IPN / LDAP status
This commit is contained in:
parent
ae6f71a236
commit
3d2ddcc206
|
@ -5,9 +5,6 @@ from apiserver import secrets
|
||||||
def is_configured():
|
def is_configured():
|
||||||
return bool(secrets.LDAP_API_URL and secrets.LDAP_API_KEY)
|
return bool(secrets.LDAP_API_URL and secrets.LDAP_API_KEY)
|
||||||
|
|
||||||
if not is_configured:
|
|
||||||
print('LDAP connection not configured.')
|
|
||||||
|
|
||||||
|
|
||||||
def ldap_api(route, data):
|
def ldap_api(route, data):
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -7,7 +7,6 @@ from .api import views
|
||||||
from . import secrets
|
from . import secrets
|
||||||
|
|
||||||
IPN_ROUTE = r'^ipn/{}/'.format(secrets.IPN_RANDOM)
|
IPN_ROUTE = r'^ipn/{}/'.format(secrets.IPN_RANDOM)
|
||||||
print('IPN route is:', '/'+IPN_ROUTE[1:])
|
|
||||||
|
|
||||||
router = routers.DefaultRouter()
|
router = routers.DefaultRouter()
|
||||||
router.register(r'door', views.DoorViewSet, basename='door')
|
router.register(r'door', views.DoorViewSet, basename='door')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user