summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn 'Skip' Reddy <jreddy@alcf.anl.gov>2012-05-17 23:58:19 +0000
committerJohn 'Skip' Reddy <jreddy@alcf.anl.gov>2012-05-17 23:58:19 +0000
commit2c68318831f946a735df1fffd1faea528ff529f5 (patch)
tree28ae48e3d2e4ab0f6f4075664edbfdefd3293d01 /src
parent64adcb62667adefc885bfcc5ae0f934300a96db3 (diff)
downloadbcfg2-2c68318831f946a735df1fffd1faea528ff529f5.tar.gz
bcfg2-2c68318831f946a735df1fffd1faea528ff529f5.tar.bz2
bcfg2-2c68318831f946a735df1fffd1faea528ff529f5.zip
Adding DB2 support for Statistics
Adding DB2 support for Statistics, following guidance from http://code.google.com/p/ibm-db/wiki/ibm_db_django_README
Diffstat (limited to 'src')
-rw-r--r--src/lib/Bcfg2/Server/Reports/settings.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Reports/settings.py b/src/lib/Bcfg2/Server/Reports/settings.py
index 4d567f1a2..26bd5076e 100644
--- a/src/lib/Bcfg2/Server/Reports/settings.py
+++ b/src/lib/Bcfg2/Server/Reports/settings.py
@@ -43,6 +43,9 @@ DATABASES = {
}
}
+if db_engine == 'ibm_db_django':
+ DATABASES['default']['ENGINE'] = db_engine
+
if db_engine != 'sqlite3':
DATABASES['default']['USER'] = c.get('statistics', 'database_user')
DATABASES['default']['PASSWORD'] = c.get('statistics', 'database_password')