Skip to content

Commit

Permalink
Changed back to comman for fabric command, otherwise it prints all co…
Browse files Browse the repository at this point in the history
…mmands to terminal
  • Loading branch information
mcianfrocco committed Apr 18, 2017
1 parent 7fed826 commit 75d49d0
Show file tree
Hide file tree
Showing 4 changed files with 725 additions and 219 deletions.
2 changes: 1 addition & 1 deletion aws/kill_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def module_exists(module_name):

#====================
def exec_remote_cmd(cmd):
with hide('output','running','warnings') and settings(warn_only=True):
with hide('output','running','warnings'), settings(warn_only=True):
return run(cmd)

#==============================
Expand Down
2 changes: 1 addition & 1 deletion aws/launch_AWS_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def module_exists(module_name):
def exec_remote_cmd(cmd):
from fabric.operations import run, put
from fabric.api import hide,settings
with hide('output','running','warnings') and settings(warn_only=True):
with hide('output','running','warnings'), settings(warn_only=True):
return run(cmd)

#==============================
Expand Down

0 comments on commit 75d49d0

Please sign in to comment.