[ckan-changes] commit/ckan: dread: [lib/cli]: Adding -h localhost by default for postgres commands.
Bitbucket
commits-noreply at bitbucket.org
Wed Oct 12 17:01:03 UTC 2011
1 new changeset in ckan:
http://bitbucket.org/okfn/ckan/changeset/47657581fc30/
changeset: 47657581fc30
branch: feature-1385-postgres-permissions
user: dread
date: 2011-10-12 18:58:19
summary: [lib/cli]: Adding -h localhost by default for postgres commands.
affected #: 1 file (-1 bytes)
--- a/ckan/lib/cli.py Wed Oct 12 16:48:20 2011 +0100
+++ b/ckan/lib/cli.py Wed Oct 12 17:58:19 2011 +0100
@@ -132,7 +132,7 @@
pg_cmd += ' -U %(db_user)s' % self.db_details
if self.db_details.get('db_pass') not in (None, ''):
pg_cmd = 'export PGPASSWORD=%(db_pass)s && ' % self.db_details + pg_cmd
- if self.db_details.get('db_host') not in (None, '', 'localhost'):
+ if self.db_details.get('db_host') not in (None, ''):
pg_cmd += ' -h %(db_host)s' % self.db_details
if self.db_details.get('db_port') not in (None, ''):
pg_cmd += ' -p %(db_port)s' % self.db_details
Repository URL: https://bitbucket.org/okfn/ckan/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the ckan-changes
mailing list