Removed redundant conditional in paramiko_ssh.py (#69164)

* Removed redundant conditional

* Added changelog fragment

* Removed trailing whitespace
This commit is contained in:
Chris Holland 2020-04-28 07:36:22 -07:00 committed by GitHub
parent 339c442250
commit d42151e676
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 14 deletions

View file

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

View file

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