# HG changeset patch # User Peter Sanchez # Date 1556258270 25200 # Thu Apr 25 22:57:50 2019 -0700 # Node ID 5e0d8278f25fd4ad94286003c2e215a8bfff7e3f # Parent 5da64b9d9a4964fc76b4c56c64b4ce70a1e95e00 Fixes to respect settings in all cases diff --git a/djeploy/globals.py b/djeploy/globals.py --- a/djeploy/globals.py +++ b/djeploy/globals.py @@ -155,7 +155,7 @@ if self.is_local: return os.path.exists(path) else: - return fab_exists(path) + return self.settings_execute(fab_exists, path) # Used everywhere... diff --git a/djeploy/postgresql.py b/djeploy/postgresql.py --- a/djeploy/postgresql.py +++ b/djeploy/postgresql.py @@ -87,8 +87,8 @@ @task -def postgresql_create_user(username, user_password=None, connect_as=None, - is_superuser=False, createdb=False, +def postgresql_create_user(username, user_password=None, connect_as=None, + is_superuser=False, createdb=False, createrole=False, password=None, dbhost=None, port=None): opts = get_pgsql_options( @@ -172,7 +172,7 @@ dbhost=dbhost, port=port, ) - + cmd = get_pgsql_command('dropdb %s' % opts, password) command.run(cmd)