Revision 833ba5e2
Added by Frédéric Péters over 11 years ago
wcsinst/wcsinstd/deploy.py | ||
---|---|---|
94 | 94 |
else: |
95 | 95 |
database_name = '%s_%s' % (database_name, domain_table_name) |
96 | 96 |
|
97 |
postgresql_cfg = {} |
|
98 |
for k, v in wcs_cfg['postgresql'].items(): |
|
99 |
if v: |
|
100 |
postgresql_cfg[k] = v |
|
97 | 101 |
try: |
98 |
pgconn = psycopg2.connect(**wcs_cfg['postgresql'])
|
|
102 |
pgconn = psycopg2.connect(**postgresql_cfg)
|
|
99 | 103 |
except psycopg2.Error: |
100 | 104 |
# XXX: log |
101 | 105 |
raise |
Also available in: Unified diff
wcsinstd: do not pass empty parameters to psycopg2 connect