From 6268b6b2bd2e91911e0d01fb3bd33ce308bed8d9 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Tue, 23 Jun 2015 17:10:46 +0200 Subject: [PATCH] DB_TEST_OVERRIDE or 'localhost' --- shortcuts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shortcuts.py b/shortcuts.py index e803f28..13a1a49 100644 --- a/shortcuts.py +++ b/shortcuts.py @@ -51,7 +51,7 @@ def lc_ldap_test(*args, **kwargs): except OSError: pass # On impose le serveur - kwargs["uri"] = 'ldap://%s' % DB_TEST_OVERRIDE + kwargs["uri"] = 'ldap://%s' % (DB_TEST_OVERRIDE or 'localhost') kwargs.setdefault("dn", 'cn=admin,dc=crans,dc=org') # Le mot de passe de la base de test kwargs.setdefault("cred", variables.ldap_test_password)