diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 417: Forward AUTH_CROWD_GROUP_MAP from settings.conf to Django object.

Message ID 20130806160038.22065.20181.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Paul Sokolovsky Aug. 6, 2013, 4 p.m. UTC
------------------------------------------------------------
revno: 417
committer: Paul Sokolovsky <paul.sokolovsky@linaro.org>
branch nick: lava-server
timestamp: Tue 2013-08-06 18:59:24 +0300
message:
  Forward AUTH_CROWD_GROUP_MAP from settings.conf to Django object.
modified:
  lava_server/settings/debian.py


--
lp:lava-server
https://code.launchpad.net/~linaro-validation/lava-server/trunk

You are subscribed to branch lp:lava-server.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-server/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_server/settings/debian.py'
--- lava_server/settings/debian.py	2013-07-30 14:22:38 +0000
+++ lava_server/settings/debian.py	2013-08-06 15:59:24 +0000
@@ -102,6 +102,8 @@ 
     crowd_config = ConfigFile.load(pathname)
     AUTH_CROWD_APPLICATION_USER = crowd_config.AUTH_CROWD_APPLICATION_USER
     AUTH_CROWD_APPLICATION_PASSWORD = crowd_config.AUTH_CROWD_APPLICATION_PASSWORD
+    if debian_settings.get_setting("AUTH_CROWD_GROUP_MAP"):
+        AUTH_CROWD_GROUP_MAP = debian_settings.AUTH_CROWD_GROUP_MAP
 
 # Load extensions
 loader.contribute_to_settings(locals(), debian_settings)