[ckan-changes] commit/ckan: dread: [fabfile][xs]: db_type more lenient.

Bitbucket commits-noreply at bitbucket.org
Tue Jul 19 11:54:41 UTC 2011


1 new changeset in ckan:

http://bitbucket.org/okfn/ckan/changeset/ee47c0e7e5da/
changeset:   ee47c0e7e5da
user:        dread
date:        2011-07-19 13:50:02
summary:     [fabfile][xs]: db_type more lenient.
affected #:  1 file (16 bytes)

--- a/fabfile.py	Thu Jul 14 14:05:25 2011 +0100
+++ b/fabfile.py	Tue Jul 19 12:50:02 2011 +0100
@@ -401,7 +401,7 @@
     with cd(env.instance_path):
         assert exists(env.config_ini_filename), "Can't find config file: %s/%s" % (env.instance_path, env.config_ini_filename)
     db_details = _get_db_config()
-    assert db_details['db_type'] == 'postgres'
+    assert db_details['db_type'] in ('postgres', 'postgresql')
     port_option = '-p %s' % db_details['db_port'] if db_details['db_port'] else ''
     run('export PGPASSWORD=%s&&pg_dump -U %s -h %s %s %s > %s' % (db_details['db_pass'], db_details['db_user'], db_details['db_host'], port_option, db_details['db_name'], pg_dump_filepath), shell=False)
     assert exists(pg_dump_filepath)

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