Removed redundant conditional in paramiko_ssh.py (#69164)
* Removed redundant conditional * Added changelog fragment * Removed trailing whitespace
This commit is contained in:
parent
339c442250
commit
d42151e676
2 changed files with 16 additions and 14 deletions
|
@ -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_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':
|
||||||
|
|
Loading…
Reference in a new issue