Removed redundant conditional in paramiko_ssh.py (#69164)

* Removed redundant conditional

* Added changelog fragment

* Removed trailing whitespace
pull/68975/head
Chris Holland 6 years ago committed by GitHub
parent 339c442250
commit d42151e676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- paramiko_ssh - Removed redundant conditional statement in ``_parse_proxy_command`` that always evaluated to True.

@ -255,7 +255,7 @@ class Connection(ConnectionBase):
getattr(self._play_context, 'ssh_common_args', '') or '',
getattr(self._play_context, 'ssh_args', '') or '',
]
if ssh_args is not None:
args = self._split_ssh_args(' '.join(ssh_args))
for i, arg in enumerate(args):
if arg.lower() == 'proxycommand':

Loading…
Cancel
Save