commit | 0fdaaee4deedb91c0b12719cf6bdfbae36471b1d | [log] [tgz] |
---|---|---|
author | koder aka kdanilov <kdanilov@mirantis.com> | Tue Jun 30 11:10:48 2015 +0300 |
committer | koder aka kdanilov <kdanilov@mirantis.com> | Tue Jun 30 11:10:48 2015 +0300 |
tree | 3177e1dffdf3972c19e62193d6ebb8c11f5cb5e9 | |
parent | 170936aec86658be3dabf29928733261e1054534 [diff] [blame] |
2.0 ready
diff --git a/wally/ssh_utils.py b/wally/ssh_utils.py index bd73f05..e77b9a8 100644 --- a/wally/ssh_utils.py +++ b/wally/ssh_utils.py
@@ -365,11 +365,12 @@ def connect(uri, **params): if uri == 'local': - return Local() - - creds = parse_ssh_uri(uri) - creds.port = int(creds.port) - return ssh_connect(creds, **params) + res = Local() + else: + creds = parse_ssh_uri(uri) + creds.port = int(creds.port) + res = ssh_connect(creds, **params) + return res all_sessions_lock = threading.Lock()