diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2019-10-08 12:25:00 -0400 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2019-10-08 12:25:00 -0400 |
commit | 07c44eed683883f00e8558c85c30af0fb20a8cf2 (patch) | |
tree | ceb80c20103a5c0f52cf8c4a62185219e18593a7 | |
parent | 67501fffeb181322eececed8f663e8e2df770d61 (diff) | |
download | paramiko-717-support-match-etc.tar.gz |
WIP re: exec717-support-match-etc
-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.) |