summaryrefslogtreecommitdiff
path: root/store.py
diff options
context:
space:
mode:
authorMartin v. L?wis <martin@v.loewis.de>2012-08-23 09:47:38 +0200
committerMartin v. L?wis <martin@v.loewis.de>2012-08-23 09:47:38 +0200
commitfe8cee82fbd8ba7e1bc19c0d3dce043bf981ac04 (patch)
tree7076221698d98fcbe45e18dca4242c14d377049c /store.py
parentc775eeb2d4a849e929e1b58957f41eaa07889393 (diff)
downloaddecorator-fe8cee82fbd8ba7e1bc19c0d3dce043bf981ac04.tar.gz
Add DB host parameter.
Diffstat (limited to 'store.py')
-rw-r--r--store.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/store.py b/store.py
index 2b7825c..08aa30a 100644
--- a/store.py
+++ b/store.py
@@ -2043,6 +2043,8 @@ class Store:
cd = dict(database=self.config.database_name, user=self.config.database_user)
if self.config.database_pw:
cd['password'] = self.config.database_pw
+ if self.config.database_host:
+ cd['host'] = self.config.database_host
if keep_conn and connection:
self._conn = connection
# Rollback any uncommitted earlier change