summaryrefslogtreecommitdiff
path: root/bin/sql_db.py
diff options
context:
space:
mode:
authorStephane Wirtel <stephane@tinyerp.com>2009-01-29 14:39:46 +0100
committerStephane Wirtel <stephane@tinyerp.com>2009-01-29 14:39:46 +0100
commit90dea2816613b7ce40c21eddb90e94e8cee73e97 (patch)
treea64bf0fee5928457fc6a9d9733325c012b37fa34 /bin/sql_db.py
parentf3bd6582fcbf3dc04202820b05d2a5d2a6197044 (diff)
[REV] Revert code for the hostname and the dump
bzr revid: stephane@tinyerp.com-20090129133946-l05fi1j8rou9tqyn
Diffstat (limited to 'bin/sql_db.py')
-rw-r--r--bin/sql_db.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/bin/sql_db.py b/bin/sql_db.py
index acc4bb39ec5..b0212ac1ea4 100644
--- a/bin/sql_db.py
+++ b/bin/sql_db.py
@@ -204,8 +204,6 @@ class PoolManager(object):
cls._dsn = ''
for p in ('host', 'port', 'user', 'password'):
cfg = tools.config['db_' + p]
- if p == 'host' and cfg in ('127.0.0.1', 'localhost'):
- continue
if cfg:
cls._dsn += '%s=%s ' % (p, cfg)
return '%s dbname=%s' % (cls._dsn, db_name)