Skip to content

Commit

Permalink
Make SSH service check quiet
Browse files Browse the repository at this point in the history
  • Loading branch information
Lantero committed Feb 16, 2017
1 parent 3c1cf82 commit cc27bb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


setup(
version='2.3.8',
version='2.3.9',
name='vcdriver',
description='A vcenter driver based on pyvmomi, fabric and pywinrm',
url='https://github.com/Lantero/vcdriver',
Expand Down
5 changes: 3 additions & 2 deletions vcdriver/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from colorama import Style, Fore
from fabric.api import sudo, run, get, put
from fabric.context_managers import settings
from fabric.context_managers import settings, hide
from pyVmomi import vim
import winrm

Expand Down Expand Up @@ -298,7 +298,8 @@ def _check_ssh_service(self):
""" Check whether the ssh service is up or not """
try:
with self._fabric_context():
run('')
with hide():
run('')
return True
except:
return False
Expand Down

0 comments on commit cc27bb3

Please sign in to comment.