Fixes to respect settings in all cases
2 files changed, 4 insertions(+), 4 deletions(-)

M djeploy/globals.py
M djeploy/postgresql.py
M djeploy/globals.py +1 -1
@@ 155,7 155,7 @@ class Command(object):
         if self.is_local:
             return os.path.exists(path)
         else:
-            return fab_exists(path)
+            return self.settings_execute(fab_exists, path)
 
 
 # Used everywhere...

          
M djeploy/postgresql.py +3 -3
@@ 87,8 87,8 @@ def postgresql_user_exists(username, con
 
 
 @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 @@ def postgresql_delete_db(dbname, connect
         dbhost=dbhost,
         port=port,
     )
-    
+
     cmd = get_pgsql_command('dropdb %s' % opts, password)
     command.run(cmd)