diff options
Diffstat (limited to 'paramiko/config.py')
-rw-r--r-- | paramiko/config.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/paramiko/config.py b/paramiko/config.py index afa74d5d..34720617 100644 --- a/paramiko/config.py +++ b/paramiko/config.py @@ -30,6 +30,12 @@ import socket from .py3compat import StringIO +invoke, invoke_import_error = None, None +try: + import invoke +except ImportError as e: + invoke_import_error = e + from .ssh_exception import CouldNotCanonicalize, ConfigParseError @@ -355,6 +361,10 @@ class SSHConfig(object): passed = self._pattern_matches(param, local_username) if self._should_fail(passed, candidate): return False + if type_ == "exec": + passed = False + if self._should_fail(passed, candidate): + return False # Made it all the way here? Everything matched! matched.append(candidate) # Did anything match? (To be treated as bool, usually.) |