Skip to content
This repository has been archived by the owner on Jan 1, 2018. It is now read-only.

Commit

Permalink
Merge pull request #393 from dimagi/sk/hide-warnings
Browse files Browse the repository at this point in the history
hide 'sudo received non-zero exit codes' warning
  • Loading branch information
snopoke committed Oct 10, 2017
2 parents 2a9c40b + 51aa585 commit 8813951
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fab/operations/db.py
@@ -1,7 +1,7 @@
import datetime
import time

from fabric.context_managers import cd, settings
from fabric.context_managers import cd, settings, hide
from fabric.api import roles, sudo, env, parallel
from fabric.decorators import runs_once

Expand Down Expand Up @@ -66,7 +66,7 @@ def ensure_checkpoints_safe():

@roles(ROLES_DEPLOY)
def _is_preindex_complete():
with settings(warn_only=True):
with settings(warn_only=True), hide('warnings'):
return sudo(
('{virtualenv_root}/bin/python '
'{code_root}/manage.py preindex_everything '
Expand Down

0 comments on commit 8813951

Please sign in to comment.