Permalink
Browse files

Fix found implementation for local connections

  • Loading branch information...
1 parent 95e8811 commit 656abe4634e6b82bb1e4d698076f1335700e2259 @viglesiasce viglesiasce committed Apr 2, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 eutester/__init__.py
View
@@ -74,6 +74,7 @@ def __init__(self, config_file=None, password=None, keypath=None, credpath=None,
self.boto_debug = boto_debug
self.ssh = None
self.sftp = None
+ self.clc = None
self.password = password
self.keypath = keypath
self.credpath = credpath
@@ -574,6 +575,8 @@ def local(self, cmd):
def found(self, command, regex, local=False):
""" Returns a Boolean of whether the result of the command contains the regex"""
+ if self.clc is None:
+ local = True
if local:
result = self.local(command)
else:

0 comments on commit 656abe4

Please sign in to comment.