1. theoden
  2. django-fab-deploy

Commits

theoden  committed 117f604

Patch to solve strange bug with testing on Windows.

Execution hanged during query request. It was catched in the while-true
cycle at fabric.operations._execute. Looks like it unsuccessfully waited for any
output to stdout and stderr.

This patch leads to distinct stderr (see
http://docs.fabfile.org/en/1.4.1/usage/interactivity.html#combining-the-two )
and solves the problem.

  • Participants
  • Parent commits a9d9582
  • Branches default

Comments (0)

Files changed (1)

File fab_deploy/db/postgres.py

View file
                 return sudo(cmd, user=db_user)
             return sudo_cmd()
 
-        return run(pwd_cmd + cmd)
+        return run(pwd_cmd + cmd, pty=False, combine_stderr=False)
 
     @task
     def _user_exists(self, db_user):