diff options
| author | Red_M <pooatyou.com@gmail.com> | 2018-05-20 19:32:37 +1000 |
|---|---|---|
| committer | Red_M <pooatyou.com@gmail.com> | 2018-05-20 19:32:37 +1000 |
| commit | 23f84c0fd845487da24d792d950f7da3b84c72be (patch) | |
| tree | b71ca6e1a4dfbcffc46e941b04a125a7a34bf19a /pexpect | |
| parent | e9af652cab7d564f3799c9a6f5de5ac6922d217c (diff) | |
| download | pexpect-git-23f84c0fd845487da24d792d950f7da3b84c72be.tar.gz | |
Woops.
Diffstat (limited to 'pexpect')
| -rw-r--r-- | pexpect/pxssh.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pexpect/pxssh.py b/pexpect/pxssh.py index 3adeaab..32fd670 100644 --- a/pexpect/pxssh.py +++ b/pexpect/pxssh.py @@ -318,13 +318,12 @@ class pxssh (spawn): if self.force_password: ssh_options = ssh_options + ' ' + self.SSH_OPTS if ssh_config is not None: - if spawn_local_ssh: - try: - if spawn_local_ssh: - os.path.isfile(ssh_config) - except: - raise ExceptionPxssh('SSH config does not exist') - ssh_options = ssh_options + '-F ' + ssh_config + try: + if spawn_local_ssh: + os.path.isfile(ssh_config) + except: + raise ExceptionPxssh('SSH config does not exist') + ssh_options = ssh_options + '-F ' + ssh_config if port is not None: ssh_options = ssh_options + ' -p %s'%(str(port)) if ssh_key is not None: |
