提交 be624da5 编写于 作者: L Lucas Meneghel Rodrigues

Merge pull request #888 from lmr/fix-remote-bug

avocado.core.remoter: Fix error on exception reference
...@@ -26,10 +26,12 @@ LOG = logging.getLogger('avocado.test') ...@@ -26,10 +26,12 @@ LOG = logging.getLogger('avocado.test')
try: try:
import fabric.api import fabric.api
import fabric.network
import fabric.operations import fabric.operations
except ImportError: except ImportError:
REMOTE_CAPABLE = False REMOTE_CAPABLE = False
LOG.info('Remote module is disabled: could not import fabric') LOG.info('Remote module is disabled: could not import fabric')
fabric = None
else: else:
REMOTE_CAPABLE = True REMOTE_CAPABLE = True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册